• S
    When creating a new DB, fail it when wal_dir contains existing log files · 0f40fe4b
    sdong 提交于
    Summary: Current behavior of creating new DB is, if there is existing log files, we will go ahead and replay them on top of empty DB. This is a behavior that no user would expect. With this patch, we will fail the creation if a user creates a DB with existing log files.
    
    Test Plan: make all check
    
    Reviewers: haobo, igor, ljin
    
    Reviewed By: haobo
    
    CC: nkg-, yhchiang, dhruba, leveldb
    
    Differential Revision: https://reviews.facebook.net/D17817
    0f40fe4b
db_impl.cc 156.4 KB