From: Howard Chu Date: Tue, 2 Apr 2013 02:06:05 +0000 (-0700) Subject: ITS#7556 fix cursor_sibling for PREV X-Git-Tag: OPENLDAP_REL_ENG_2_4_36~89^2~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3213fc4db725fec22ccf894cad3b9623ac9ccf7b;p=openldap ITS#7556 fix cursor_sibling for PREV --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 438838f615..5980384d8d 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; }