• Y
    Make DBImpl::has_unpersisted_data_ atomic · c2247dc1
    Yi Wu 提交于
    Summary:
    Seems to me `has_unpersisted_data_` is read from read thread and write
    from write thread concurrently without synchronization. Making it an
    atomic.
    
    I update the logic not because seeing any problem with it, but it just
    feel confusing.
    Closes https://github.com/facebook/rocksdb/pull/1869
    
    Differential Revision: D4555837
    
    Pulled By: yiwu-arbug
    
    fbshipit-source-id: eff2ab8
    c2247dc1
db_impl.h 44.5 KB