From: Pavel Odintsov Date: Fri, 31 Aug 2018 10:55:19 +0000 (+0100) Subject: Replaced getCopy by getLocal X-Git-Tag: dnsdist-1.3.3~128^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6141572b730fe0af24a3bedaf43287a7bf46d436;p=thirdparty%2Fpdns.git Replaced getCopy by getLocal --- diff --git a/pdns/dnsdist-web.cc b/pdns/dnsdist-web.cc index bc473a13a6..1b7215ed76 100644 --- a/pdns/dnsdist-web.cc +++ b/pdns/dnsdist-web.cc @@ -419,10 +419,10 @@ static void connectionThread(int sock, ComboAddress remote, string password, str output << "\n"; } - const auto states = g_dstates.getCopy(); + auto states = g_dstates.getLocal(); const string statesbase = "dnsdist_main_servers_"; - for (const auto& state : states) { + for (const auto& state : *states) { string serverName; if (state->name.empty()) @@ -452,10 +452,10 @@ static void connectionThread(int sock, ComboAddress remote, string password, str << "\"} " << front->queries.load() << "\n"; } - const auto localPools = g_pools.getCopy(); + auto localPools = g_pools.getLocal(); const string cachebase = "dnsdist_pool_"; - for (const auto& entry : localPools) { + for (const auto& entry : *localPools) { string poolName = entry.first; boost::replace_all(poolName, ".", "_");