mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx: minor refine clearing C_DEL.
This commit is contained in:
parent
2dc3e1ee5f
commit
febe2e2748
7
mdbx.c
7
mdbx.c
@ -6682,9 +6682,7 @@ int mdbx_cursor_get(MDB_cursor *mc, MDB_val *key, MDB_val *data,
|
||||
break;
|
||||
}
|
||||
|
||||
if (mc->mc_flags & C_DEL)
|
||||
mc->mc_flags ^= C_DEL;
|
||||
|
||||
mc->mc_flags &= ~C_DEL;
|
||||
return rc;
|
||||
}
|
||||
|
||||
@ -6851,8 +6849,7 @@ int mdbx_cursor_put(MDB_cursor *mc, MDB_val *key, MDB_val *data,
|
||||
return rc;
|
||||
}
|
||||
|
||||
if (mc->mc_flags & C_DEL)
|
||||
mc->mc_flags ^= C_DEL;
|
||||
mc->mc_flags &= ~C_DEL;
|
||||
|
||||
/* Cursor is positioned, check for room in the dirty list */
|
||||
if (!nospill) {
|
||||
|
Loading…
Reference in New Issue
Block a user