• J
    Make `DB::Close()` thread-safe (#8970) · 314de7e7
    Jay Zhuang 提交于
    Summary:
    If `DB::Close()` is called in multi-thread env, the resource
    could be double released, which causes exception or assert.
    
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/8970
    
    Test Plan:
    Test with multi-thread benchmark, with each thread try to
    close the DB at the end.
    
    Reviewed By: pdillinger
    
    Differential Revision: D31242042
    
    Pulled By: jay-zhuang
    
    fbshipit-source-id: a61276b1b61e07732e375554106946aea86a23eb
    314de7e7
db_basic_test.cc 128.5 KB