From 1c560535a7c561a9b10ab01a01b85a537514663a Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 4 Jul 2025 15:46:30 +0200 Subject: [PATCH] Better name for a local variable. NFC Signed-off-by: Miod Vallat --- modules/lmdbbackend/lmdbbackend.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/lmdbbackend/lmdbbackend.cc b/modules/lmdbbackend/lmdbbackend.cc index a3c6a9d6e9..8ece5cd201 100644 --- a/modules/lmdbbackend/lmdbbackend.cc +++ b/modules/lmdbbackend/lmdbbackend.cc @@ -2740,7 +2740,7 @@ bool LMDBBackend::updateDNSSECOrderNameAndAuth(domainid_t domain_id, const DNSNa } bool hasOrderName = !ordername.empty() && isNsec3; - bool needNSEC3 = hasOrderName; + bool keepNSEC3 = hasOrderName; do { if (compoundOrdername::getQType(key.getNoStripHeader()) == QType::NSEC3) { @@ -2758,8 +2758,8 @@ bool LMDBBackend::updateDNSSECOrderNameAndAuth(domainid_t domain_id, const DNSNa // If there is at least one entry for that qname, with a different qtype // than the one we are working for, known to be associated to an NSEC3 // record, then we should NOT delete it. - if (!needNSEC3) { - needNSEC3 = lrr.hasOrderName && isDifferentQType; + if (!keepNSEC3) { + keepNSEC3 = lrr.hasOrderName && isDifferentQType; } if (!isDifferentQType && (lrr.hasOrderName != hasOrderName || lrr.auth != auth)) { @@ -2774,7 +2774,7 @@ bool LMDBBackend::updateDNSSECOrderNameAndAuth(domainid_t domain_id, const DNSNa } } while (cursor.next(key, val) == 0); - if (!needNSEC3) { + if (!keepNSEC3) { // NSEC3 link to be removed: need to remove an existing pair, if any deleteNSEC3RecordPair(txn, domain_id, rel); } -- 2.47.2