• D
    Flush was hanging because the configured options specified that more than 1... · 32c965d4
    Dhruba Borthakur 提交于
    Flush was hanging because the configured options specified that more than 1 memtable need to be merged.
    
    Summary:
    There is an config option called Options.min_write_buffer_number_to_merge
    that specifies the minimum number of write buffers to merge in memory
    before flushing to a file in L0. But in the the case when the db is
    being closed, we should not be using this config, instead we should
    flush whatever write buffers were available at that time.
    
    Test Plan: Unit test attached.
    
    Reviewers: haobo, emayanke
    
    Reviewed By: haobo
    
    CC: leveldb
    
    Differential Revision: https://reviews.facebook.net/D12717
    32c965d4
db_test.cc 126.3 KB