]> git.sur5r.net Git - openldap/commitdiff
ITS#8321 page_touch - don't fixup the cursor we just touched
authorHoward Chu <hyc@openldap.org>
Mon, 23 Nov 2015 13:19:26 +0000 (13:19 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 24 Nov 2015 16:00:21 +0000 (16:00 +0000)
libraries/liblmdb/mdb.c

index e9c2c9f298cc3f16e79564e1f147810c79879e47..22c5d301863eea26ab7cc4893207ce56cc38a0d9 100644 (file)
@@ -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) &&