d_handle.reset();
DLOG(g_log << "Bind2Backend constructing handle for list of " << id << endl);
+ if (!bbd.d_loaded) {
+ throw PDNSException("zone was not loaded, perhaps because of: " + bbd.d_status);
+ }
+
d_handle.d_records = bbd.d_records.get(); // give it a copy, which will stay around
d_handle.d_qname_iter = d_handle.d_records->begin();
d_handle.d_qname_end = d_handle.d_records->end(); // iter now points to a vector of pointers to vector<BBResourceRecords>
continue;
}
+ if (!h.d_loaded) {
+ continue;
+ }
+
shared_ptr<const recordstorage_t> rhandle = h.d_records.get();
for (recordstorage_t::const_iterator ri = rhandle->begin(); result.size() < static_cast<vector<DNSResourceRecord>::size_type>(maxResults) && ri != rhandle->end(); ri++) {