• S
    Sync WAL Directory and DB Path if different from DB directory · d888c957
    sdong 提交于
    Summary:
    1. If WAL directory is different from db directory. Sync the directory after creating a log file under it.
    2. After creating an SST file, sync its parent directory instead of DB directory.
    3. change the check of kResetDeleteUnsyncedFiles in fault_injection_test. Since we changed the behavior to sync log files' parent directory after first WAL sync, instead of creating, kResetDeleteUnsyncedFiles will not guarantee to show post sync updates.
    
    Test Plan: make all check
    
    Reviewers: yhchiang, rven, igor
    
    Reviewed By: igor
    
    Subscribers: leveldb, dhruba
    
    Differential Revision: https://reviews.facebook.net/D32067
    d888c957
db_impl.h 26.2 KB