From f84d9f6208eda2f5586f519b3239f6e06ce23df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Sun, 6 Mar 2022 00:13:11 +0300 Subject: [PATCH] mdbx++: minor refine `mdbx::cursor::erase()`. --- mdbx.h++ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdbx.h++ b/mdbx.h++ index b72e0ccb..2ef5e34a 100644 --- a/mdbx.h++ +++ b/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