• S
    Buffer info logs when picking compactions and write them out after releasing the mutex · ecb1ffa2
    sdong 提交于
    Summary: Now while the background thread is picking compactions, it writes out multiple info_logs, especially for universal compaction, which introduces a chance of waiting log writing in mutex, which is bad. To remove this risk, write all those info logs to a buffer and flush it after releasing the mutex.
    
    Test Plan:
    make all check
    check the log lines while running some tests that trigger compactions.
    
    Reviewers: haobo, igor, dhruba
    
    Reviewed By: dhruba
    
    CC: i.am.jin.lei, dhruba, yhchiang, leveldb, nkg-
    
    Differential Revision: https://reviews.facebook.net/D16515
    ecb1ffa2
version_set.cc 75.7 KB