• S
    DB::GetSortedWalFiles() to ensure file deletion is disabled (#8591) · e8f218cb
    sdong 提交于
    Summary:
    If DB::GetSortedWalFiles() runs without file deletion disbled, file might get deleted in the middle and error is returned to users. It makes the function hard to use. Fix it by disabling file deletion if it is not done.
    
    Fix another minor issue of logging within DB mutex, which should not be done unless a major failure happens.
    
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/8591
    
    Test Plan: Run all existing tests
    
    Reviewed By: pdillinger
    
    Differential Revision: D29969412
    
    fbshipit-source-id: d5f42b5271608a35b9b07687ce18157d7447b0de
    e8f218cb
db_filesnapshot.cc 5.2 KB