]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
add comment
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 28 Apr 2023 11:52:42 +0000 (13:52 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 28 Apr 2023 11:52:42 +0000 (13:52 +0200)
ext/lmdb-safe/lmdb-typed.hh

index 0e837a60913ea26c6bf81252debf3086b3b8fb2a..a0845273b397a0e27afc712575d0a790b42a2276 100644 (file)
@@ -164,6 +164,7 @@ struct LMDBIndexOps
 
     MDBOutVal currentvalue;
 
+    // check if the entry already exists, so we don't uselessly bump the timestamp
     if (txn->get(d_idx, combined, currentvalue) == MDB_NOTFOUND) {
       txn->put(d_idx, combined, empty, flags);
     }