]> granicus.if.org Git - pdns/commit
rec: Guard `registerAllStats()` with an atomic flag instead of a bool
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 1 Aug 2017 08:39:16 +0000 (10:39 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 1 Aug 2017 08:39:16 +0000 (10:39 +0200)
commitc25e045e701e74e0489635a01d500a076f2b92f8
tree260e3bb7208eb92b5b6e3ed34da2968a0e201eee
parent638dd3d9f03352f78d0bd32b9088c19ff9cc409f
rec: Guard `registerAllStats()` with an atomic flag instead of a bool

Unlikely as it seems, I just got hit by a race where three threads
were trying to register the stats at the same time, causing my
starting recursor to stay stuck while consuming a lot of CPU.
pdns/rec_channel_rec.cc