]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix a typo LeastOustandingType -> LeastOutstandingType 11689/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 22 Jun 2022 09:32:06 +0000 (11:32 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 22 Jun 2022 09:32:06 +0000 (11:32 +0200)
pdns/dnsdistdist/dnsdist-lbpolicies.cc

index 855b9900a4beb18a86070f288f6454559a0bfa38..f10365797d173fa4d9fcb0a1db7fc1655c40aa42 100644 (file)
@@ -57,18 +57,18 @@ template <class T> static std::shared_ptr<DownstreamState> getLeastOutstanding(c
 // get server with least outstanding queries, and within those, with the lowest order, and within those: the fastest
 shared_ptr<DownstreamState> leastOutstanding(const ServerPolicy::NumberedServerVector& servers, const DNSQuestion* dq)
 {
-  using LeastOustandingType = std::tuple<int,int,double>;
+  using LeastOutstandingType = std::tuple<int,int,double>;
 
   if (servers.size() == 1 && servers[0].second->isUp()) {
     return servers[0].second;
   }
 
   if (servers.size() <= s_staticArrayCutOff) {
-    StaticIndexArray<LeastOustandingType> poss;
+    StaticIndexArray<LeastOutstandingType> poss;
     return getLeastOutstanding(servers, poss);
   }
 
-  DynamicIndexArray<LeastOustandingType> poss;
+  DynamicIndexArray<LeastOutstandingType> poss;
   poss.resize(servers.size());
   return getLeastOutstanding(servers, poss);
 }