Skip to content

Instantly share code, notes, and snippets.

@Habbie
Created April 26, 2013 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Habbie/5466801 to your computer and use it in GitHub Desktop.
Save Habbie/5466801 to your computer and use it in GitHub Desktop.
Fix
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