From: Howard Chu Date: Thu, 23 May 2013 15:13:08 +0000 (-0700) Subject: ITS#7594 De-init other subcursors in page_touch X-Git-Tag: OPENLDAP_REL_ENG_2_4_36~36^2~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e31c7d3b31d8d5073195e31b283e8ccb46bd13cf;p=openldap ITS#7594 De-init other subcursors in page_touch --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 5558875872..22c5a5c526 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -1636,6 +1636,8 @@ finish: if (m2 == mc || m2->mc_snum < mc->mc_snum) continue; if (m2->mc_pg[mc->mc_top] == mc->mc_pg[mc->mc_top]) { m2->mc_pg[mc->mc_top] = mp; + if (mc->mc_db->md_flags & MDB_DUPSORT) + m2->mc_xcursor->mx_cursor.mc_flags &= ~C_INITIALIZED; } } }