Changeset 999 for trunk/pdns/pdns/backends/bind/bindbackend2.cc
- Timestamp:
- 03/26/07 22:18:23 (6 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/backends/bind/bindbackend2.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/backends/bind/bindbackend2.cc
r987 r999 455 455 return; 456 456 } 457 458 457 s_first=0; 459 458 s_state = shared_ptr<State>(new State); … … 465 464 dl->registerFunc("BIND-DOMAIN-STATUS", &DLDomStatusHandler); 466 465 dl->registerFunc("BIND-LIST-REJECTS", &DLListRejectsHandler); 466 } 467 468 Bind2Backend::~Bind2Backend() 469 { 470 if(us==this) { 471 L<<Logger::Error<<"Main bind2backend instance being destructed"<<endl; 472 exit(1); 473 } 467 474 } 468 475 … … 630 637 set_difference(newnames.begin(), newnames.end(), oldnames.begin(), oldnames.end(), back_inserter(diff2)); 631 638 newdomains=diff2.size(); 632 633 s_state = staging; // and boy do we hope this is a threadsafe operation!639 640 s_state.swap(staging); // and boy do we hope this is a threadsafe operation! 634 641 635 642 // report