]> git.ipfire.org Git - thirdparty/pdns.git/commit
ixfrdist: Make sure that our metrics are properly initialized 12510/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 6 Feb 2023 09:07:04 +0000 (10:07 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 6 Feb 2023 09:07:04 +0000 (10:07 +0100)
commitde9fbd402dc05263e8ddb2e6ffc09b5cf01bef1e
tree14487c5a7134eb57ab3e8d541861da8f29570546
parent2d2603ad709345553df4744533310c9e36151b9b
ixfrdist: Make sure that our metrics are properly initialized

Before C++20 std::atomic variables are not guaranteed to be initialized,
even though it looks like compilers are actually doing the initialization
even in C++17.
Reported by Coverity as CID 1504405.
pdns/ixfrdist-stats.hh
regression-tests.ixfrdist/test_Stats.py