]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
slavecommunicator.cc: Rename notify as doNotify
authorAki Tuomi <cmouse@cmouse.fi>
Mon, 21 Oct 2019 09:25:10 +0000 (12:25 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Tue, 29 Oct 2019 10:03:20 +0000 (12:03 +0200)
rfc2136handler.cc:616:30: warning: declaration of 'forwardPacket' shadows a member of 'this'

pdns/slavecommunicator.cc

index 5b68c286002a2c08b82fb44d7134228026c71708..6ca612850406fa09f6a8b8b6b8680be8785fe244 100644 (file)
@@ -599,14 +599,14 @@ void CommunicatorClass::suck(const DNSName &domain, const ComboAddress& remote)
     g_log<<Logger::Error<<"AXFR done for '"<<domain<<"', zone committed with serial number "<<zs.soa_serial<<endl;
 
     // Send slave re-notifications
-    bool notify;
+    bool doNotify;
     vector<string> meta;
     if(B.getDomainMetadata(domain, "SLAVE-RENOTIFY", meta ) && !meta.empty()) {
-      notify=(meta.front() == "1");
+      doNotify=(meta.front() == "1");
     } else {
-      notify=(::arg().mustDo("slave-renotify"));
+      doNotify=(::arg().mustDo("slave-renotify"));
     }
-    if(notify) {
+    if(doNotify) {
       notifyDomain(domain, &B);
     }