Avoid deletion in "in place" modification function

With the previous fix for `put()` this is no longer required.
This commit is contained in:
Martchus 2024-03-08 19:13:27 +01:00
parent f7cdacd30d
commit bda69c292d
1 changed files with 0 additions and 1 deletions

View File

@ -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<void(T &)> &func)