From 9411de60d2b4a99e8d68519f3f9083f23b4280c5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 12 Oct 2015 10:29:09 +0100 Subject: [PATCH] ITS#7771 more for prev commit --- libraries/liblmdb/mdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 83bd5fbdf6..8f7f3b39b7 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -6891,6 +6891,7 @@ mdb_cursor_del(MDB_cursor *mc, unsigned int flags) /* fix other sub-DB cursors pointed at fake pages on this page */ for (m2 = mc->mc_txn->mt_cursors[mc->mc_dbi]; m2; m2=m2->mc_next) { if (m2 == mc || m2->mc_snum < mc->mc_snum) continue; + if (!(m2->mc_flags & C_INITIALIZED)) continue; if (m2->mc_pg[mc->mc_top] == mp) { if (m2->mc_ki[mc->mc_top] == mc->mc_ki[mc->mc_top]) { m2->mc_xcursor->mx_cursor.mc_pg[0] = NODEDATA(leaf); -- 2.39.5