• S
    Clean up InternalIterator upper bound logic a little bit (#7200) · 5c1a5441
    sdong 提交于
    Summary:
    IteratorIterator::IsOutOfBound() and IteratorIterator::MayBeOutOfUpperBound() are two functions that related to upper bound check. It is hard for users to reason about this complexity. Consolidate the two functions into one and assign an enum as results to improve readability.
    
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/7200
    
    Test Plan: Run all existing test. Would run crash test with atomic for a while.
    
    Reviewed By: anand1976
    
    Differential Revision: D22833181
    
    fbshipit-source-id: a0c724267056adbd0476bde74650e6c7226077e6
    5c1a5441
db_iter.cc 49.2 KB