From: Remi Gacogne Date: Fri, 25 Jul 2025 14:28:56 +0000 (+0200) Subject: dnsdist: Ensure the runtime configuration is updated in the SNMP thread X-Git-Tag: dnsdist-2.0.1~6^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6e3bb2d5007a0590b0222c6ef2fa4d0992ffd6f;p=thirdparty%2Fpdns.git dnsdist: Ensure the runtime configuration is updated in the SNMP thread Signed-off-by: Remi Gacogne (cherry picked from commit a7da19df49ebd0745449eb206ca035a18500d251) --- diff --git a/pdns/dnsdistdist/dnsdist-snmp.cc b/pdns/dnsdistdist/dnsdist-snmp.cc index 9d4a05c1f..1f153236e 100644 --- a/pdns/dnsdistdist/dnsdist-snmp.cc +++ b/pdns/dnsdistdist/dnsdist-snmp.cc @@ -284,7 +284,7 @@ static netsnmp_variable_list* backendStatTable_get_first_data_point(void** loop_ /* get a copy of the shared_ptrs so they are not destroyed while we process the request */ - auto backends = dnsdist::configuration::getCurrentRuntimeConfiguration().d_backends; + const auto& backends = dnsdist::configuration::refreshLocalRuntimeConfiguration().d_backends; s_servers.clear(); s_servers.reserve(backends.size()); for (auto& server : backends) {