-
Notifications
You must be signed in to change notification settings - Fork 54
Reverse iterators start off-by-one. #44
Copy link
Copy link
Open
Labels
Description
If I instantiate a reverse iterator like so:
leveldb
.iter(ReadOptions::new())
.reverse()
.from(start_key)
.to(stop_key)
The first key it yields is the a key that's not in the [stop_key, start_key] range, but is actually the first one after start_key.
Example: if my db has keys ["a", "c", "e", "g"] and start_key is "d", stop_key is "a".
Then the first key yielded is "e", which is outside of the "d"->"a" range I am asking.
Reactions are currently unavailable