• A
    Preserve overlapping file endpoint invariant · 78d1a5ec
    Andrew Kryczka 提交于
    Summary:
    Fix for #2833.
    
    - In `DeleteFilesInRange`, use `GetCleanInputsWithinInterval` instead of `GetOverlappingInputs` to make sure we get a clean cut set of files to delete.
    - In `GetCleanInputsWithinInterval`, support nullptr as `begin_key` or `end_key`.
    - In `GetOverlappingInputsRangeBinarySearch`, move the assertion for non-empty range away from `ExtendFileRangeWithinInterval`, which should be allowed to return an empty range (via `end_index < begin_index`).
    Closes https://github.com/facebook/rocksdb/pull/2843
    
    Differential Revision: D5772387
    
    Pulled By: ajkr
    
    fbshipit-source-id: e554e8461823c6be82b21a9262a2da02b3957881
    78d1a5ec
version_set.cc 139.7 KB