From: Howard Chu Date: Wed, 9 Jul 2014 22:03:54 +0000 (-0700) Subject: More for cursor EOF X-Git-Tag: OPENLDAP_REL_ENG_2_4_40~126^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=886ee41d55a410ebadf81cbba3082fdffeed18fd;p=openldap More for cursor EOF Must also set in sub-cursor if deleting entire subDB --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 5e7716151d..f8c94e3100 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -7659,6 +7659,8 @@ mdb_cursor_del0(MDB_cursor *mc) m3->mc_flags |= C_DEL; 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; } if (m3->mc_ki[mc->mc_top] >= nkeys) { rc = mdb_cursor_sibling(m3, 1);