} while (type != QType::SOA && hunt.chopOff());
if (info.id == 0) {
// cout << "Did not find zone for "<< qdomain<<endl;
- d_lookupstate.cursor.reset();
+ d_lookupstate.reset();
return;
}
}
else {
if (!findDomain(zoneId, info)) {
// cout<<"Could not find a zone with id "<<zoneId<<endl;
- d_lookupstate.cursor.reset();
+ d_lookupstate.reset();
return;
}
}
MDBOutVal key{};
MDBOutVal val{};
if (d_lookupstate.cursor->prefix(match, key, val) != 0) {
- d_lookupstate.cursor.reset(); // will cause get() to fail
+ d_lookupstate.reset(); // will cause get() to fail
if (dolog) {
g_log << Logger::Warning << "Query " << ((long)(void*)this) << ": " << d_dtime.udiffNoReset() << " us to execute (found nothing)" << endl;
}
d_lookupstate.rrset.clear(); // will invalidate lrr
if (d_lookupstate.cursor && d_lookupstate.cursor->next(d_lookupstate.key, d_lookupstate.val) != 0) {
// cerr<<"resetting d_lookupstate.cursor 2"<<endl;
- d_lookupstate.cursor.reset();
+ d_lookupstate.reset();
}
}
}
// Hit a special NSEC3 record, skip it
if (d_lookupstate.cursor->next(d_lookupstate.key, d_lookupstate.val) != 0) {
// cerr<<"resetting d_lookupstate.cursor 1"<<endl;
- d_lookupstate.cursor.reset();
+ d_lookupstate.reset();
}
continue;
}
void LMDBBackend::lookupEnd()
{
- d_lookupstate.cursor.reset();
+ d_lookupstate.reset();
d_rotxn.reset();
}