mirror of
https://github.com/isar/libmdbx.git
synced 2025-09-29 23:02:21 +08:00
mdbx: minor refine clearing C_DEL.
This commit is contained in:
7
mdbx.c
7
mdbx.c
@@ -6682,9 +6682,7 @@ int mdbx_cursor_get(MDB_cursor *mc, MDB_val *key, MDB_val *data,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mc->mc_flags & C_DEL)
|
mc->mc_flags &= ~C_DEL;
|
||||||
mc->mc_flags ^= C_DEL;
|
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6851,8 +6849,7 @@ int mdbx_cursor_put(MDB_cursor *mc, MDB_val *key, MDB_val *data,
|
|||||||
return rc;
|
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 */
|
/* Cursor is positioned, check for room in the dirty list */
|
||||||
if (!nospill) {
|
if (!nospill) {
|
||||||
|
Reference in New Issue
Block a user