From: Howard Chu Date: Thu, 2 Oct 2014 20:58:20 +0000 (+0100) Subject: ITS#7955, #7671 fix MDB_PREV_DUP X-Git-Tag: LMDB_0.9.15~60 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=af99820ac88188a3f22656cdce5e75a64c315005;p=openldap ITS#7955, #7671 fix MDB_PREV_DUP --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 81fe20510d..a7659a5b3c 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -5428,11 +5428,11 @@ mdb_cursor_prev(MDB_cursor *mc, MDB_val *key, MDB_val *data, MDB_cursor_op op) } return rc; } - } else { - mc->mc_xcursor->mx_cursor.mc_flags &= ~(C_INITIALIZED|C_EOF); - if (op == MDB_PREV_DUP) - return MDB_NOTFOUND; } + } else { + mc->mc_xcursor->mx_cursor.mc_flags &= ~(C_INITIALIZED|C_EOF); + if (op == MDB_PREV_DUP) + return MDB_NOTFOUND; } }