-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] iter_start_seqnum does not work with backward iteration #6837
Labels
bug
Confirmed RocksDB bugs
Comments
wolfkdy
changed the title
[BUG] iter_start_seqnum only works well with forward iteration
[BUG] iter_start_seqnum does not work with backward iteration
May 12, 2020
@wolfkdy maybe we can update the doc for |
jay-zhuang
added a commit
to jay-zhuang/rocksdb
that referenced
this issue
Nov 19, 2021
Summary: `ReadOptions::iter_start_seqnum` and `DBOptions::preserve_deletes` are deprecated, please try using user defined timestamp feature instead. The feature is used to support differential snapshots, but not well maintained (facebook#6837, facebook#8472) and the interface is not user friendly which returns an internal key from the iterator. The user defined timestamp feature is a more flexible feature to support similar usecase, please switch to that if you have such usecase. The deprecated feature will be removed in a future release. Test Plan: check LOG Fix facebook#9090
facebook-github-bot
pushed a commit
that referenced
this issue
Nov 20, 2021
Summary: `ReadOptions::iter_start_seqnum` and `DBOptions::preserve_deletes` are deprecated, please try using user defined timestamp feature instead. The feature is used to support differential snapshots, but not well maintained (#6837, #8472) and the interface is not user friendly which returns an internal key from the iterator. The user defined timestamp feature is a more flexible feature to support similar usecase, please switch to that if you have such usecase. The deprecated feature will be removed in a future release. Pull Request resolved: #9091 Test Plan: check LOG Fix #9090 Reviewed By: ajkr Differential Revision: D32071750 Pulled By: jay-zhuang fbshipit-source-id: b882c4668dd1bf26ce03c4c192f1bba584bf6104
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rocksdb/db/db_iter.cc
Line 74 in e45673d
from ReadOptions' comment (or manual), iter_start_seqnum should work well for both forward and backward iteration.
I tried but find this parameter does not work inbackward iteration, by digging into the db_iter.cc, it seems this parameter is implemented partially, only for forward iteration.
The text was updated successfully, but these errors were encountered: