]> git.ipfire.org Git - thirdparty/pdns.git/commit
ixfrdist: Make sure that our metrics are properly initialized 12521/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 6 Feb 2023 09:07:04 +0000 (10:07 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 8 Feb 2023 12:44:30 +0000 (13:44 +0100)
commitcd861832ee95b6336aab10000f76ba0e485d7127
tree3e6459c28f7d4b39530cb279e8c2e8b508684fa0
parentd022118f48f978af3bf7224d7a2a2e9f0c022a43
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.

(cherry picked from commit de9fbd402dc05263e8ddb2e6ffc09b5cf01bef1e)
pdns/ixfrdist-stats.hh
regression-tests.ixfrdist/test_Stats.py