From 75b97f03e4137325b1141f8fa6f4034ef03b47a0 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 9 Apr 2012 19:24:47 -0700 Subject: [PATCH] ITS#7210 fix check for freelist changes Was being fooled before because the newly malloc'd block had the same address as the previously freed block. --- libraries/libmdb/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index 46fd2683d7..eddeb5e899 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -1989,7 +1989,7 @@ again: * due to freed overflow pages... */ mdb_cursor_put(&mc, &key, &data, 0); - if (mop == env->me_pghead) { + if (mop == env->me_pghead && env->me_pghead->mo_txnid == id) { /* could have been used again here */ if (mop->mo_pages[0] != orig) { data.mv_size = MDB_IDL_SIZEOF(mop->mo_pages); -- 2.39.5