• S
    Refactor compaction picker code · ff972870
    Siying Dong 提交于
    Summary:
    1. Move universal compaction picker to separate files compaction_picker_universal.cc and compaction_picker_universal.h.
    2. Rename some functions to make the code easier to understand.
    3. Move leveled compaction picking code to a dedicated class, so that we we don't need to pass some common variable around when calling functions. It also allowed us to break down LevelCompactionPicker::PickCompaction() to smaller functions.
    Closes https://github.com/facebook/rocksdb/pull/2100
    
    Differential Revision: D4845948
    
    Pulled By: siying
    
    fbshipit-source-id: efa0ab4
    ff972870
CMakeLists.txt 26.4 KB