From f0d79df9b9dae85bbd59f098e38cd6f037d8c398 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Mon, 21 Dec 2020 22:34:16 +0300 Subject: [PATCH] mdbx: fix `mdbx_page_flush()`. Change-Id: I467c2367f2e99ae50996d0859ae22f70c9649a2d --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index c3792118..e2d9f96a 100644 --- a/src/core.c +++ b/src/core.c @@ -8149,7 +8149,7 @@ __hot static int mdbx_page_flush(MDBX_txn *txn, const size_t keep) { (void)flush_end; txn->tw.dirtyroom += (unsigned)(r - 1 - w); - dl->length = (unsigned)w; + dl->sorted = dl->length = (unsigned)w; mdbx_tassert(txn, txn->mt_parent || txn->tw.dirtyroom + txn->tw.dirtylist->length == txn->mt_env->me_options.dp_limit);