aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Zyp <kriszyp@gmail.com>2019-04-15 20:07:56 -0600
committerHoward Chu <hyc@symas.com>2021-02-01 16:09:08 +0000
commit935bfaa913c74b206569a7a1746a599c9f5de07a (patch)
tree8c5f1336edd10fcb57d1451895d8c89238ebb9cf
parentMerge pull request #7260 (diff)
downloadmonero-935bfaa913c74b206569a7a1746a599c9f5de07a.tar.xz
ITS#9007 don't free loose writemap pages
Broken in ITS#8756
-rw-r--r--external/db_drivers/liblmdb/mdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/db_drivers/liblmdb/mdb.c b/external/db_drivers/liblmdb/mdb.c
index ba1315401..8699b445e 100644
--- a/external/db_drivers/liblmdb/mdb.c
+++ b/external/db_drivers/liblmdb/mdb.c
@@ -3461,9 +3461,9 @@ mdb_freelist_save(MDB_txn *txn)
} else {
x = mdb_mid2l_search(dl, mp->mp_pgno);
mdb_tassert(txn, dl[x].mid == mp->mp_pgno);
+ mdb_dpage_free(env, mp);
}
dl[x].mptr = NULL;
- mdb_dpage_free(env, mp);
}
{
/* squash freed slots out of the dirty list */