From 534dcc721287cfe1051191a5cd7d3df6cf1dc409 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 7 Jul 2014 17:13:51 -0700 Subject: [PATCH] Set xcursor EOF after deleting last entry --- libraries/liblmdb/mdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index e0465d4..6d02f8e 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) {