ITS#8412 fix NEXT_DUP after cursor_del

ntdll
Howard Chu 9 years ago
parent 37081325f7
commit a04aad31c2
  1. 3
      libraries/liblmdb/mdb.c

@ -6417,7 +6417,8 @@ mdb_cursor_next(MDB_cursor *mc, MDB_val *key, MDB_val *data, MDB_cursor_op op)
MDB_node *leaf; MDB_node *leaf;
int rc; int rc;
if (mc->mc_flags & C_EOF) { if ((mc->mc_flags & C_EOF) ||
((mc->mc_flags & C_DEL) && op == MDB_NEXT_DUP)) {
return MDB_NOTFOUND; return MDB_NOTFOUND;
} }
if (!(mc->mc_flags & C_INITIALIZED)) if (!(mc->mc_flags & C_INITIALIZED))

Loading…
Cancel
Save