From: Howard Chu Date: Tue, 8 Jul 2014 00:13:51 +0000 (-0700) Subject: Set xcursor EOF after deleting last entry X-Git-Tag: OPENLDAP_REL_ENG_2_4_40~127^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=534dcc721287cfe1051191a5cd7d3df6cf1dc409;p=openldap Set xcursor EOF after deleting last entry --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index e0465d4795..6d02f8e5d1 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -6343,6 +6343,7 @@ mdb_cursor_del(MDB_cursor *mc, unsigned int flags) return rc; } /* otherwise fall thru and delete the sub-DB */ + mc->mc_xcursor->mx_cursor.mc_flags |= C_EOF; } if (leaf->mn_flags & F_SUBDATA) {