mdbx: minor fix txn_spill().

Change-Id: Ic624681d3a9e262b77f761796aabf0231019db72
This commit is contained in:
Leonid Yuriev 2021-02-05 16:47:04 +03:00
parent 0e8c913c57
commit 7e7d526ed5

View File

@ -4814,7 +4814,7 @@ static void mdbx_txn_xkeep(MDBX_txn *txn, MDBX_cursor *m0,
* the child aborted. */
static int mdbx_txn_spill(MDBX_txn *txn, MDBX_cursor *m0, unsigned need) {
#ifndef MDBX_DEBUG_SPILLING
if (likely(txn->tw.dirtyroom > need))
if (likely(txn->tw.dirtyroom >= need))
return MDBX_SUCCESS;
unsigned spill = need - txn->tw.dirtyroom;
#else