• I
    Handling edge cases for ReFitLevel · 73faa3d4
    Islam AbdelRahman 提交于
    Summary:
    Right now the level we pass to ReFitLevel is the maximum level with files (before compaction), there are multiple cases where this maximum level have changed after compaction
    - all files where in L0 (now maximum level is L1)
    - using kCompactionStyleUniversal (now maximum level in the last level)
    - level_compaction_dynamic_level_bytes ??
    
    We can handle each of these cases individually, but I felt it's safer to calculate max_level_with_files again if we want to do a ReFitLevel
    
    Test Plan:
    adding some tests
    make -j64 check
    
    Reviewers: igor, sdong
    
    Reviewed By: sdong
    
    Subscribers: ott, dhruba
    
    Differential Revision: https://reviews.facebook.net/D39663
    73faa3d4
db_test.cc 436.1 KB