mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:04:13 +08:00
mdbx: minor fix txn_spill()
.
Change-Id: Ic624681d3a9e262b77f761796aabf0231019db72
This commit is contained in:
parent
0e8c913c57
commit
7e7d526ed5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user