mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx: minor clarify TODO (configurable threshold to keep reserve space for large/overflow pages).
Change-Id: I73a3847852466eb3e34927c5648435c8cf283c0e
This commit is contained in:
parent
af9b7b5605
commit
4f62b059ef
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user