mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-21 21:28:20 +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. */
|
* the child aborted. */
|
||||||
static int mdbx_txn_spill(MDBX_txn *txn, MDBX_cursor *m0, unsigned need) {
|
static int mdbx_txn_spill(MDBX_txn *txn, MDBX_cursor *m0, unsigned need) {
|
||||||
#ifndef MDBX_DEBUG_SPILLING
|
#ifndef MDBX_DEBUG_SPILLING
|
||||||
if (likely(txn->tw.dirtyroom > need))
|
if (likely(txn->tw.dirtyroom >= need))
|
||||||
return MDBX_SUCCESS;
|
return MDBX_SUCCESS;
|
||||||
unsigned spill = need - txn->tw.dirtyroom;
|
unsigned spill = need - txn->tw.dirtyroom;
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user