]> granicus.if.org Git - pdns/commitdiff
spelling: successful
authorJosh Soref <jsoref@users.noreply.github.com>
Tue, 19 Mar 2019 17:12:33 +0000 (13:12 -0400)
committerJosh Soref <jsoref@users.noreply.github.com>
Tue, 19 Mar 2019 17:12:33 +0000 (13:12 -0400)
pdns/dnsdist.cc
pdns/dnsdist.hh

index f2dfa39b218c0f3700345d9c20a9ece48c06d811..daf947bfabebe237f211950f2b42be58b50248f3 100644 (file)
@@ -1965,8 +1965,8 @@ static void healthChecksThread()
 
           if (!dss->upStatus) {
             /* we were marked as down */
-            dss->consecutiveSuccesfulChecks++;
-            if (dss->consecutiveSuccesfulChecks < dss->minRiseSuccesses) {
+            dss->consecutiveSuccessfulChecks++;
+            if (dss->consecutiveSuccessfulChecks < dss->minRiseSuccesses) {
               /* if we need more than one successful check to rise
                  and we didn't reach the threshold yet,
                  let's stay down */
@@ -1976,7 +1976,7 @@ static void healthChecksThread()
         }
         else {
           /* check failed */
-          dss->consecutiveSuccesfulChecks = 0;
+          dss->consecutiveSuccessfulChecks = 0;
 
           if (dss->upStatus) {
             /* we are currently up */
@@ -2002,7 +2002,7 @@ static void healthChecksThread()
 
           dss->upStatus = newState;
           dss->currentCheckFailures = 0;
-          dss->consecutiveSuccesfulChecks = 0;
+          dss->consecutiveSuccessfulChecks = 0;
           if (g_snmpAgent && g_snmpTrapsEnabled) {
             g_snmpAgent->sendBackendStatusChangeTrap(dss);
           }
index 925d1d0d1d639218a1c44339b06d6abbf72e13a4..d2c664e413e14033d5bbc5c3f00cfbe20bc69b12 100644 (file)
@@ -710,7 +710,7 @@ struct DownstreamState
   uint16_t xpfRRCode{0};
   uint16_t checkTimeout{1000}; /* in milliseconds */
   uint8_t currentCheckFailures{0};
-  uint8_t consecutiveSuccesfulChecks{0};
+  uint8_t consecutiveSuccessfulChecks{0};
   uint8_t maxCheckFailures{1};
   uint8_t minRiseSuccesses{1};
   StopWatch sw;