From bda69c292d3275f0a0e38b64a7f8c8bc58ba5231 Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 8 Mar 2024 19:13:27 +0100 Subject: [PATCH] Avoid deletion in "in place" modification function With the previous fix for `put()` this is no longer required. --- lmdb-typed.hh | 1 - 1 file changed, 1 deletion(-) diff --git a/lmdb-typed.hh b/lmdb-typed.hh index 177a03f..dd6f9bf 100644 --- a/lmdb-typed.hh +++ b/lmdb-typed.hh @@ -876,7 +876,6 @@ public: throw LMDBError("Could not modify id " + std::to_string(id)); } func(t); - del(id); // this is the lazy way. We could test for changed index fields put(t, id); } void modify(IDType id, const std::function &func)