From: Howard Chu Date: Sun, 22 Nov 2015 22:11:30 +0000 (+0000) Subject: ITS#8321 Fix del/dupsort X-Git-Tag: LMDB_0.9.17~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=91dc62506b7427a121c4d5af7e1b05f42acab425;p=openldap ITS#8321 Fix del/dupsort When deleting a dupsort key, if other cursors pointed at that key, set them to uninit'd, not EOF. They no longer have anything to point at. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 77287b7728..a4a9e1f318 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -8131,7 +8131,7 @@ mdb_cursor_del0(MDB_cursor *mc) if (m3->mc_ki[mc->mc_top] > ki) m3->mc_ki[mc->mc_top]--; else if (mc->mc_db->md_flags & MDB_DUPSORT) - m3->mc_xcursor->mx_cursor.mc_flags |= C_EOF; + m3->mc_xcursor->mx_cursor.mc_flags &= ~C_INITIALIZED; } } }