mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 01:44:13 +08:00
mdbx++: minor refine mdbx::cursor::erase()
.
This commit is contained in:
parent
9569b864ff
commit
f84d9f6208
2
mdbx.h++
2
mdbx.h++
@ -5852,7 +5852,7 @@ inline bool cursor::erase(const slice &key, bool whole_multivalue) {
|
||||
|
||||
inline bool cursor::erase(const slice &key, const slice &value) {
|
||||
move_result data = find_multivalue(key, value, false);
|
||||
return data.done ? erase() : data.done;
|
||||
return data.done && erase();
|
||||
}
|
||||
|
||||
} // namespace mdbx
|
||||
|
Loading…
x
Reference in New Issue
Block a user