Changeset 2345
- Timestamp:
- 01/16/12 08:24:11 (17 months ago)
- Location:
- tags/pdns-2-9-22-x/pdns
- Files:
-
- 2 modified
-
dnsbackend.hh (modified) (1 diff)
-
slavecommunicator.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/pdns-2-9-22-x/pdns/dnsbackend.hh
r2063 r2345 43 43 struct DomainInfo 44 44 { 45 DomainInfo() : backend(0) {} 45 46 uint32_t id; 46 47 string zone; -
tags/pdns-2-9-22-x/pdns/slavecommunicator.cc
r2063 r2345 61 61 L<<Logger::Error<<"Initiating transfer of '"<<domain<<"' from remote '"<<remote<<"'"<<endl; 62 62 uint32_t domain_id; 63 PacketHandler P; 63 PacketHandler P; // fresh UeberBackend 64 64 65 65 DomainInfo di; … … 72 72 UeberBackend *B=dynamic_cast<UeberBackend *>(P.getBackend()); 73 73 74 if(!B->getDomainInfo(domain, di) || !di.backend) { 74 if(!B->getDomainInfo(domain, di) || !di.backend) { // di.backend and B are mostly identical 75 75 L<<Logger::Error<<"Can't determine backend for domain '"<<domain<<"'"<<endl; 76 76 return; … … 165 165 { 166 166 Lock l(&d_lock); 167 d_tocheck.insert(di); 167 DomainInfo ours = di; 168 ours.backend = 0; 169 d_tocheck.insert(ours); 168 170 d_any_sem.post(); // kick the loop! 169 171 } … … 242 244 if(!ssr.d_serials.count(di.id)) 243 245 continue; 246 if(!di.backend) // might've come from the packethandler 247 B->getDomainInfo(di.zone, di); 244 248 uint32_t theirserial = ssr.d_serials[di.id], ourserial = di.serial; 245 249