From: Howard Chu Date: Mon, 23 Nov 2015 13:19:26 +0000 (+0000) Subject: ITS#8321 page_touch - don't fixup the cursor we just touched X-Git-Tag: LMDB_0.9.17~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2b89f4baf16e40aa61fcd95311aaf341097bbd55;p=openldap ITS#8321 page_touch - don't fixup the cursor we just touched --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index e9c2c9f298..22c5d30186 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -2418,6 +2418,7 @@ done: } else { for (; m2; m2=m2->mc_next) { if (m2->mc_snum < mc->mc_snum) continue; + if (m2 == mc) continue; if (m2->mc_pg[mc->mc_top] == mp) { m2->mc_pg[mc->mc_top] = np; if ((mc->mc_db->md_flags & MDB_DUPSORT) &&