From 4f62b059ef76cabd12a057cf11c745a66416e6f0 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 30 Mar 2021 01:34:46 +0300 Subject: [PATCH] mdbx: minor clarify TODO (configurable threshold to keep reserve space for large/overflow pages). Change-Id: I73a3847852466eb3e34927c5648435c8cf283c0e --- src/core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core.c b/src/core.c index 17e4b610..fb38606d 100644 --- a/src/core.c +++ b/src/core.c @@ -14322,10 +14322,10 @@ int mdbx_cursor_put(MDBX_cursor *mc, const MDBX_val *key, MDBX_val *data, /* Is the ov page large enough? */ if (unlikely(mc->mc_flags & C_GCFREEZE) - ? ovpages >= dpages - : ovpages == - /* LY: add configurable threshold to keep reserve space */ - dpages) { + ? (ovpages >= dpages) + : (ovpages == + /* TODO: add configurable threshold to keep reserve space */ + dpages)) { if (!IS_DIRTY(omp) && (level || (env->me_flags & MDBX_WRITEMAP))) { rc2 = mdbx_page_unspill(mc->mc_txn, omp, &omp); if (unlikely(rc2))