mirror of
https://github.com/isar/libmdbx.git
synced 2026-01-17 16:12:23 +08:00
mdbx: add MDBX_FAKE_SPILL_WRITEMAP build option.
Change-Id: I2c7f9267b0e725674b8bc73547bedd8478231948
This commit is contained in:
@@ -5109,9 +5109,6 @@ static int mdbx_txn_spill(MDBX_txn *txn, MDBX_cursor *m0, unsigned need) {
|
||||
int rc = MDBX_SUCCESS;
|
||||
if (txn->mt_flags & MDBX_WRITEMAP) {
|
||||
MDBX_dpl *const dl = txn->tw.dirtylist;
|
||||
#ifndef MDBX_FAKE_SPILL_WRITEMAP
|
||||
#define MDBX_FAKE_SPILL_WRITEMAP 1
|
||||
#endif
|
||||
const unsigned span = dl->length - txn->tw.loose_count;
|
||||
txn->tw.dirtyroom += span;
|
||||
if (MDBX_FAKE_SPILL_WRITEMAP) {
|
||||
|
||||
Reference in New Issue
Block a user