diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 438838f..5980384 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -4273,6 +4273,8 @@ mdb_cursor_sibling(MDB_cursor *mc, int move_right) return rc; mdb_cursor_push(mc, mp); + if (!move_right) + mc->mc_ki[mc->mc_top] = NUMKEYS(mp)-1; return MDB_SUCCESS; }