]> git.sur5r.net Git - openldap/commitdiff
Set xcursor EOF after deleting last entry
authorHoward Chu <hyc@symas.com>
Tue, 8 Jul 2014 00:13:51 +0000 (17:13 -0700)
committerHoward Chu <hyc@symas.com>
Tue, 8 Jul 2014 00:13:51 +0000 (17:13 -0700)
libraries/liblmdb/mdb.c

index e0465d4795dc57970030b34cf7a55152ee9992b1..6d02f8e5d1d16bc9b9e8fb0278e986599898891c 100644 (file)
@@ -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) {