ITS#7955, #7671 fix MDB_PREV_DUP

mdb.RE/0.9
Howard Chu 10 years ago committed by Hallvard Furuseth
parent 0482f1898d
commit af99820ac8
  1. 8
      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;
}
}

Loading…
Cancel
Save