]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Use an unordered map for pools 15871/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 18 Jul 2025 10:06:29 +0000 (12:06 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 18 Jul 2025 12:35:10 +0000 (14:35 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-configuration.hh

index 75702e6fd668d6ef058bd711e80c6fad1ef30688..063c69fdc6beb6025136e6bb36b3f37589bc7092 100644 (file)
 #pragma once
 
 #include <functional>
-#include <map>
 #include <memory>
 #include <optional>
 #include <string>
+#include <unordered_map>
 
 #include "config.h"
 #include "credentials.hh"
@@ -118,7 +118,7 @@ struct RuntimeConfiguration
 #ifndef DISABLE_CARBON
   std::vector<dnsdist::Carbon::Endpoint> d_carbonEndpoints;
 #endif /* DISABLE_CARBON */
-  std::map<std::string, std::shared_ptr<ServerPool>> d_pools;
+  std::unordered_map<std::string, std::shared_ptr<ServerPool>> d_pools;
   std::shared_ptr<const CredentialsHolder> d_webPassword;
   std::shared_ptr<const CredentialsHolder> d_webAPIKey;
   std::optional<std::unordered_map<std::string, std::string>> d_webCustomHeaders;