]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix race in registerAllStats() by making sure it only returns if the map
authorOtto <otto.moerbeek@open-xchange.com>
Wed, 27 Jan 2021 12:36:55 +0000 (13:36 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Wed, 27 Jan 2021 12:36:55 +0000 (13:36 +0100)
commitbfddf1e55e9b78cc34935aeccb68e87ae2b7229d
tree0b121c9deafb523eb5c8d4695f5ba6c2f634f2f8
parentd3fe9f3f43555e762c786dd9e6e4628d1345c266
Fix race in registerAllStats() by making sure it only returns if the map
has been fully initialized. If another thread is busy initing, we wait a bit.
So it's safe to call getAllStatsMap() after registerAllStats() returns.
Fixes #10021
pdns/rec_channel_rec.cc
pdns/ws-recursor.cc