mdbx: minor refine clearing C_DEL.

This commit is contained in:
Leo Yuriev 2017-02-17 19:55:10 +03:00
parent 2dc3e1ee5f
commit febe2e2748

7
mdbx.c
View File

@ -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) {