• S
    Fix CompactRange for universal compaction with num_levels > 1 · d01bbb53
    sdong 提交于
    Summary:
    CompactRange for universal compaction with num_levels > 1 seems to have a bug. The unit test also has a bug so it doesn't capture the problem.
    Fix it. Revert the compact range to the logic equivalent to num_levels=1. Always compact all files together.
    
    It should also fix DBTest.IncreaseUniversalCompactionNumLevels. The issue was that options.write_buffer_size = 100 << 10 and options.write_buffer_size = 100 << 10 are not used in later test scenarios. So write_buffer_size of 4MB was used. The compaction trigger condition is not anymore obvious as expected.
    
    Test Plan: Run the new test and all test suites
    
    Reviewers: yhchiang, rven, kradhakrishnan, anthony, igor
    
    Reviewed By: igor
    
    Subscribers: leveldb, dhruba
    
    Differential Revision: https://reviews.facebook.net/D37551
    d01bbb53
db_test.cc 412.0 KB