mdbx++: minor refine mdbx::cursor::erase().

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-03-06 00:13:11 +03:00
parent 9569b864ff
commit f84d9f6208

View File

@ -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