if (co.getQType(key.getNoStripHeader<string_view>()).getCode() && (lrr.auth || co.getQType(key.getNoStripHeader<string_view>()).getCode() == QType::NS))
break;
}
- if (rc || co.getDomainID(key.getNoStripHeader<string_view>()) != domainId) {
+ if (rc != 0 || compoundOrdername::getDomainID(key.getNoStripHeader<string_view>()) != domainId) {
// cout << "We hit the end of the zone or database. 'after' is apex" << endl;
after = zonename;
return false;
@@ -2381,7+2382,7 @@ bool LMDBBackend::getBeforeAndAfterNames(uint32_t domainId, const ZoneName& zone
return true;
}
- if (co.getDomainID(key.getNoStripHeader<string_view>()) != domainId) {
+ if (compoundOrdername::getDomainID(key.getNoStripHeader<string_view>()) != domainId) {
// cout << "Ended up in next zone, 'after' is zonename" <<endl;
after = zonename;
// cout << "Now hunting for previous" << endl;
@@ -2393,8+2394,8 @@ bool LMDBBackend::getBeforeAndAfterNames(uint32_t domainId, const ZoneName& zone
return false;
}
- if (co.getDomainID(key.getNoStripHeader<string_view>()) != domainId) {
- // cout<<"Reversed into zone, but found wrong zone id " << co.getDomainID(key.getNoStripHeader<string_view>()) << " != "<<domainId<<endl;
+ if (compoundOrdername::getDomainID(key.getNoStripHeader<string_view>()) != domainId) {
+ // cout<<"Reversed into zone, but found wrong zone id " << compoundOrdername::getDomainID(key.getNoStripHeader<string_view>()) << " != "<<domainId<<endl;
// "this can't happen"
return false;
}
@@ -2425,7+2426,7 @@ bool LMDBBackend::getBeforeAndAfterNames(uint32_t domainId, const ZoneName& zone
int rc = cursor.next(key, val);
if (!rc)
++skips;
- if (rc || co.getDomainID(key.getNoStripHeader<string_view>()) != domainId) {
+ if (rc != 0 || compoundOrdername::getDomainID(key.getNoStripHeader<string_view>()) != domainId) {
// cout << " oops, hit end of database or zone. This means after is apex" <<endl;
after = zonename;
break;
@@ -2437,7+2438,7 @@ bool LMDBBackend::getBeforeAndAfterNames(uint32_t domainId, const ZoneName& zone
for (;;) {
int rc = cursor.prev(key, val);
- if (rc || co.getDomainID(key.getNoStripHeader<string_view>()) != domainId) {
+ if (rc != 0 || compoundOrdername::getDomainID(key.getNoStripHeader<string_view>()) != domainId) {
// XX I don't think this case can happen
// cout << "We hit the beginning of the zone or database.. now what" << endl;