• I
    Don't roll empty logs · e6acb874
    Igor Canadi 提交于
    Summary:
    With multiple column families, especially when manual Flush is executed, we might roll the log file, although the current log file is empty (no data has been written to the log).
    
    After the diff, we won't create new log file if current is empty.
    
    Next, I will write an algorithm that will flush column families that reference old log files (i.e., that weren't flushed in a while)
    
    Test Plan: Added an unit test. Confirmed that unit test failes in master
    
    Reviewers: dhruba, haobo, ljin, sdong
    
    Reviewed By: ljin
    
    CC: leveldb
    
    Differential Revision: https://reviews.facebook.net/D17631
    e6acb874
db_impl.h 21.9 KB