d_getcursor = std::make_shared<MDBROCursor>(d_rotxn->txn->getCursor(d_rotxn->db->dbi));
compoundOrdername co;
- d_matchkey = co(di.id);
+ std::string match = co(di.id);
MDBOutVal key, val;
- if (d_getcursor->prefix(d_matchkey, key, val) != 0) {
+ if (d_getcursor->prefix(match, key, val) != 0) {
d_getcursor.reset();
}
compoundOrdername co;
d_getcursor = std::make_shared<MDBROCursor>(d_rotxn->txn->getCursor(d_rotxn->db->dbi));
MDBOutVal key, val;
+ std::string match;
if (type.getCode() == QType::ANY) {
- d_matchkey = co(zoneId, relqname);
+ match = co(zoneId, relqname);
}
else {
- d_matchkey = co(zoneId, relqname, type.getCode());
+ match = co(zoneId, relqname, type.getCode());
}
- if (d_getcursor->prefix(d_matchkey, key, val) != 0) {
+ if (d_getcursor->prefix(match, key, val) != 0) {
d_getcursor.reset();
if (d_dolog) {
g_log << Logger::Warning << "Query " << ((long)(void*)this) << ": " << d_dtime.udiffNoReset() << " us to execute (found nothing)" << endl;
static void deleteNSEC3RecordPair(const std::shared_ptr<RecordsRWTransaction>& txn, domainid_t domain_id, const DNSName& qname);
void writeNSEC3RecordPair(const std::shared_ptr<RecordsRWTransaction>& txn, domainid_t domain_id, const DNSName& qname, const DNSName& ordername);
- bool get_list(DNSZoneRecord& rr);
- bool get_lookup(DNSZoneRecord& rr);
- std::string d_matchkey;
ZoneName d_lookupdomain;
-
vector<LMDBResourceRecord> d_currentrrset;
size_t d_currentrrsetpos;
MDBOutVal d_currentKey;