mdbx: minor clarify TODO (configurable threshold to keep reserve space for large/overflow pages).

Change-Id: I73a3847852466eb3e34927c5648435c8cf283c0e
This commit is contained in:
Leonid Yuriev 2021-03-30 01:34:46 +03:00
parent af9b7b5605
commit 4f62b059ef

View File

@ -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))