mdbx: provide MDBX_ENABLE_REFUND build option.

Change-Id: I0e4c94a22f3b0957176431709604a7595f85252a
This commit is contained in:
Leonid Yuriev
2021-01-18 17:34:54 +03:00
parent 7183f62e13
commit 7bae2a7cd2
3 changed files with 55 additions and 26 deletions

View File

@@ -801,7 +801,9 @@ struct MDBX_txn {
MDBX_cursor **cursors;
pgno_t *reclaimed_pglist; /* Reclaimed GC pages */
txnid_t last_reclaimed; /* ID of last used record */
#if MDBX_ENABLE_REFUND
pgno_t loose_refund_wl /* FIXME: describe */;
#endif /* MDBX_ENABLE_REFUND */
/* dirtylist room: Dirty array size - dirty pages visible to this txn.
* Includes ancestor txns' dirty pages not hidden by other txns'
* dirty/spilled pages. Thus commit(nested txn) has room to merge