Created
April 26, 2013 11:44
-
-
Save Habbie/5466801 to your computer and use it in GitHub Desktop.
Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: pdns/slavecommunicator.cc | |
=================================================================== | |
--- pdns/slavecommunicator.cc (revision 2796) | |
+++ pdns/slavecommunicator.cc (working copy) | |
@@ -577,8 +577,12 @@ | |
typedef DomainNotificationInfo val_t; | |
BOOST_FOREACH(val_t& val, sdomains) { | |
DomainInfo& di(val.di); | |
- if(!di.backend) // might've come from the packethandler | |
- B->getDomainInfo(di.zone, di); | |
+ // might've come from the packethandler | |
+ if(!di.backend && !B->getDomainInfo(di.zone, di)) { | |
+ L<<Logger::Warning<<"Ignore domain "<< di.zone<<" since it has been removed from our backend"<<endl; | |
+ continue; | |
+ } | |
+ | |
if(!ssr.d_freshness.count(di.id)) | |
continue; | |
uint32_t theirserial = ssr.d_freshness[di.id].theirSerial, ourserial = di.serial; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment