]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Do not leave dangling transactions if get() throws.
authorMiod Vallat <miod.vallat@powerdns.com>
Thu, 19 Mar 2026 09:32:31 +0000 (10:32 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Thu, 19 Mar 2026 09:32:31 +0000 (10:32 +0100)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
modules/lmdbbackend/lmdbbackend.cc

index a43105427099cea85a4670dbd5109482aac55bb2..996a1636ff9ad628a2ded62947a31e5c13343762 100644 (file)
@@ -2123,6 +2123,7 @@ bool LMDBBackend::get(DNSZoneRecord& zr) // NOLINT(readability-identifier-length
     zr.disabled = lrr.disabled;
   }
   catch (const std::exception& e) {
+    lookupEnd();
     throw PDNSException(e.what());
   }