• I
    Fix CompactRange to apply filter to every key · d9cd7a06
    Igor Canadi 提交于
    Summary:
    When doing CompactRange(), we should first flush the memtable and then calculate max_level_with_files. Also, we want to compact all the levels that have files, including level `max_level_with_files`.
    
    This patch fixed the unit test.
    
    Test Plan: Added a failing unit test and a fix, so it's not failing anymore.
    
    Reviewers: dhruba, haobo, sdong
    
    Reviewed By: haobo
    
    CC: leveldb, xjin
    
    Differential Revision: https://reviews.facebook.net/D14421
    d9cd7a06
version_set.cc 106.4 KB