void Bind2Backend::doEmptyNonTerminals(BB2DomainInfo& bbd, bool nsec3zone, NSEC3PARAMRecordContent ns3pr)
{
- shared_ptr<recordstorage_t> records = bbd.d_records.getWRITABLE();
+ shared_ptr<const recordstorage_t> records = bbd.d_records.get();
bool auth, doent=true;
set<string> qnames;
map<string, bool> nonterm;
if(!bbd.current()) {
L<<Logger::Warning<<"Zone '"<<bbd.d_name<<"' ("<<bbd.d_filename<<") needs reloading"<<endl;
queueReloadAndStore(bbd.d_id);
- throw DBException("Zone for '"+bbd.d_name+"' in '"+bbd.d_filename+"' being reloaded"); // if we don't throw here, we crash for some reason
+ if (!safeGetBBDomainInfo(domain, &bbd))
+ throw DBException("Zone '"+bbd.d_name+"' ("+bbd.d_filename+") gone after reload"); // if we don't throw here, we crash for some reason
}
d_handle.d_records = bbd.d_records.get();
Loaded zone addzone.com from zones/addzone.com
0
Already loaded
-Rcode: 2, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
-Reply to question for qname='ns1.addzone.com.', qtype=A
0 ns1.addzone.com. IN A 3600 1.1.1.5
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='ns1.addzone.com.', qtype=A