]> git.sur5r.net Git - openldap/commitdiff
ITS#7556 fix cursor_sibling for PREV
authorHoward Chu <hyc@symas.com>
Tue, 2 Apr 2013 02:06:05 +0000 (19:06 -0700)
committerHoward Chu <hyc@symas.com>
Tue, 2 Apr 2013 02:06:05 +0000 (19:06 -0700)
libraries/liblmdb/mdb.c

index 438838f615eadd83a62e1e8b1f93027d9d6d6870..5980384d8d48036f4ce13d9f901903a4bf881dc0 100644 (file)
@@ -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;
 }