• S
    Add Iterator::Refresh() · e67b35c0
    Siying Dong 提交于
    Summary:
    Add and implement Iterator::Refresh(). When this function is called, if the super version doesn't change, update the sequence number of the iterator to the latest one and invalidate the iterator. If the super version changed, recreated the whole iterator. This can help users reuse the iterator more easily.
    Closes https://github.com/facebook/rocksdb/pull/2621
    
    Differential Revision: D5464500
    
    Pulled By: siying
    
    fbshipit-source-id: f548bd35e85c1efca2ea69273802f6704eba6ba9
    e67b35c0
db_impl.h 50.7 KB