You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the wiki is actually correct, I would almost suggest that the Java API could automatically introduce the status check after all mentioned methods in RocksIterator. Otherwise this is super easy to overlook.
Expected behavior
According to the wiki https://github.com/facebook/rocksdb/wiki/Iterator#error-handling, people always need to call
RocksIterator#status()
afterSeek(), Next(), SeekToFirst(), SeekToLast(), SeekForPrev(), and Prev()
, even ifValid()=true
.Actual behavior
RocksIterator#status()
is only used in a few loop, that is inconsistent with the description from the wiki.(Additional, what is the best practice with using
RocksIterator
and thestatus()
?)The text was updated successfully, but these errors were encountered: