]> granicus.if.org Git - pdns/commitdiff
dnsdist: Fix exceedServFails() case. Add exceedQRate to completion
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 20 Jan 2016 17:09:18 +0000 (18:09 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 21 Jan 2016 08:39:12 +0000 (09:39 +0100)
Rename exceedServfails() to exceedServFails() to be consistent.
Closes #3273.

pdns/dnsdist-console.cc
pdns/dnsdist-lua2.cc

index 51b24a5cb8fbf8c0454d2f58196ba96c7f8d4c4f..3838b7478fd9911fcdf01b946b3b507deacf084c 100644 (file)
@@ -192,7 +192,8 @@ char* my_generator(const char* text, int state)
       "carbonServer(", "controlSocket(", "clearDynBlocks()",
       "DelayAction(", "delta()", "DisableValidationAction(", "DropAction(",
       "dumpStats()",
-      "exceedNXDOMAINs(", "exceedQTypeRate(", "exceedRespByterate(", "exceedServFails(",
+      "exceedNXDOMAINs(", "exceedQRate(", "exceedQTypeRate(", "exceedRespByterate(",
+      "exceedServFails(",
       "firstAvailable", "fixupCase(",
       "generateDNSCryptCertificate(", "generateDNSCryptProviderKeys(", "getPoolServers(", "getResponseRing(",
       "getServer(", "getServers()", "grepq(",
index 0cf7095f737ec908916b6a2a6cf2d243c1d696a0..0172032cc214ec5108be6546d816a48b98e054fb 100644 (file)
@@ -184,7 +184,7 @@ void moreLua()
   g_lua.registerFunction<bool(nmts_t::*)(const ComboAddress&)>("match", 
                                                                     [](nmts_t& s, const ComboAddress& ca) { return s.match(ca); });
 
-  g_lua.writeFunction("exceedServfails", [](unsigned int rate, int seconds) {
+  g_lua.writeFunction("exceedServFails", [](unsigned int rate, int seconds) {
       setLuaNoSideEffect();
       return exceedRCode(rate, seconds, RCode::ServFail);
     });