• I
    Centralize compression decision to compaction picker · f146cab2
    Igor Canadi 提交于
    Summary:
    Before this diff, we're deciding enable_compression in CompactionPicker and then we're deciding final compression type in DBImpl. This is kind of confusing.
    
    After the diff, the final compression type will be decided in CompactionPicker.
    
    The reason for this is that I want CompactFiles() to specify output compression type, so that people can mix and match compression styles in their compaction algorithms. This diff makes it much easier to do that.
    
    Test Plan: make check
    
    Reviewers: dhruba, haobo, sdong, yhchiang, ljin
    
    Reviewed By: ljin
    
    Subscribers: leveldb
    
    Differential Revision: https://reviews.facebook.net/D19137
    f146cab2
db_impl.h 23.6 KB