From 7e7d526ed5c063d88352ba12d4a93dac58e8c5fb Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Fri, 5 Feb 2021 16:47:04 +0300 Subject: [PATCH] mdbx: minor fix `txn_spill()`. Change-Id: Ic624681d3a9e262b77f761796aabf0231019db72 --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index d83f4496..20c18842 100644 --- a/src/core.c +++ b/src/core.c @@ -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