Commit 18a07eb7 authored by Claude Brisson's avatar Claude Brisson Committed by Howard Chu
Browse files

ITS#7681 fix mdb_cursor_set behaviour for MDB_SET_RANGE

parent 5f6fa8c0
......@@ -5227,7 +5227,10 @@ mdb_cursor_set(MDB_cursor *mc, MDB_val *key, MDB_val *data,
if (!mc->mc_top) {
/* There are no other pages */
mc->mc_ki[mc->mc_top] = 0;
return MDB_NOTFOUND;
if (op == MDB_SET_RANGE)
goto set1;
else
return MDB_NOTFOUND;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment