From e31c7d3b31d8d5073195e31b283e8ccb46bd13cf Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 23 May 2013 08:13:08 -0700 Subject: [PATCH] ITS#7594 De-init other subcursors in page_touch --- libraries/liblmdb/mdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 5558875..22c5a5c 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; } } }