From: Howard Chu Date: Mon, 12 Oct 2015 09:29:09 +0000 (+0100) Subject: ITS#7771 more for prev commit X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9411de60d2b4a99e8d68519f3f9083f23b4280c5;p=openldap ITS#7771 more for prev commit --- 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);