From 3213fc4db725fec22ccf894cad3b9623ac9ccf7b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 1 Apr 2013 19:06:05 -0700 Subject: [PATCH] ITS#7556 fix cursor_sibling for PREV --- libraries/liblmdb/mdb.c | 2 ++ 1 file changed, 2 insertions(+) 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; }