mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx: fix extra conversion of an error during nested dupsort-DB update to MDBX_PROBLEM
.
Hope this fixes https://github.com/erthink/libmdbx/issues/195
This commit is contained in:
parent
74ea79ac1b
commit
244fab6c04
@ -15066,10 +15066,11 @@ new_sub:;
|
||||
rc = mdbx_cursor_check(mc, 0);
|
||||
return rc;
|
||||
bad_sub:
|
||||
if (unlikely(rc == MDBX_KEYEXIST))
|
||||
if (unlikely(rc == MDBX_KEYEXIST)) {
|
||||
mdbx_error("unexpected %s", "MDBX_KEYEXIST");
|
||||
/* should not happen, we deleted that item */
|
||||
rc = MDBX_PROBLEM;
|
||||
/* should not happen, we deleted that item */
|
||||
rc = MDBX_PROBLEM;
|
||||
}
|
||||
}
|
||||
mc->mc_txn->mt_flags |= MDBX_TXN_ERROR;
|
||||
return rc;
|
||||
|
Loading…
Reference in New Issue
Block a user