We are only removing ENT when we know for sure that there are other
records for that name, so there is no risk of orphaning NSEC3 chains.
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
// cout <<" -"<<n<<endl;
n.makeUsRelative(di.zone);
txn->txn->del(txn->db->dbi, co(domain_id, n, QType::ENT));
- // Remove possible orphaned NSEC3 record pair tied to that ENT.
- auto cursor = txn->txn->getCursor(txn->db->dbi);
- if (hasOrphanedNSEC3Record(cursor, domain_id, n)) {
- deleteNSEC3RecordPair(txn, domain_id, n);
- }
}
}
if (needCommit)