From 6141572b730fe0af24a3bedaf43287a7bf46d436 Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Fri, 31 Aug 2018 11:55:19 +0100 Subject: [PATCH] Replaced getCopy by getLocal --- pdns/dnsdist-web.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, ".", "_"); -- 2.47.2