From 332718f1487d5a08324b522716e2cc3915b5ffea Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Mon, 15 Apr 2019 20:07:56 -0600 Subject: [PATCH] ITS#9007 don't free loose writemap pages Broken in ITS#8756 --- libraries/liblmdb/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index cfd69f7..f685421 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -3459,9 +3459,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 */