]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Correctly update domain timestamps if not split.
authorMiod Vallat <miod.vallat@powerdns.com>
Thu, 4 Jun 2026 06:28:24 +0000 (08:28 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Thu, 4 Jun 2026 06:28:24 +0000 (08:28 +0200)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
modules/lmdbbackend/lmdbbackend.cc

index cb825d87341be10d48eacf01817c6c4cb936b7c7..e008f176cc538051ab65521fd4cd403c727fcaf8 100644 (file)
@@ -2432,8 +2432,15 @@ bool LMDBBackend::genChangeTransientDomain(domainid_t id, const std::function<vo
     writeDomainInfo(info);
   }
   else {
-    // No need to write the complete DomainInfo in this case
-    writeTransientDomainInfo(info);
+    // If the DomainInfo table is split, only update the extra table.
+    if (d_split_domains_table) {
+      writeTransientDomainInfo(info);
+    }
+    else {
+      auto txn = d_tdomains->getRWTransaction();
+      txn.put(info, info.id);
+      txn.commit();
+    }
   }
   return true;
 }