Avoid deletion in "in place" modification function
With the previous fix for `put()` this is no longer required.
This commit is contained in:
parent
f7cdacd30d
commit
bda69c292d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue