mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 20:24:13 +08:00
mdbx: fix extra check for MDBX_APPENDDUP
.
This commit is contained in:
parent
2d7c25b263
commit
52cb6b90a7
@ -15571,7 +15571,7 @@ __hot int mdbx_cursor_put(MDBX_cursor *mc, const MDBX_val *key, MDBX_val *data,
|
|||||||
mc->mc_ki[mc->mc_top]++; /* step forward for appending */
|
mc->mc_ki[mc->mc_top]++; /* step forward for appending */
|
||||||
rc = MDBX_NOTFOUND;
|
rc = MDBX_NOTFOUND;
|
||||||
} else {
|
} else {
|
||||||
if (unlikely(rc != MDBX_SUCCESS || !(flags & MDBX_APPENDDUP)))
|
if (unlikely(rc != MDBX_SUCCESS))
|
||||||
/* new-key < last-key
|
/* new-key < last-key
|
||||||
* or new-key == last-key without MDBX_APPENDDUP */
|
* or new-key == last-key without MDBX_APPENDDUP */
|
||||||
return MDBX_EKEYMISMATCH;
|
return MDBX_EKEYMISMATCH;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user