• C
    Fix a number of object lifetime/ownership issues · 2fdf91a4
    Chip Turner 提交于
    Summary:
    Replace manual memory management with std::unique_ptr in a
    number of places; not exhaustive, but this fixes a few leaks with file
    handles as well as clarifies semantics of the ownership of file handles
    with log classes.
    
    Test Plan: db_stress, make check
    
    Reviewers: dhruba
    
    Reviewed By: dhruba
    
    CC: zshao, leveldb, heyongqiang
    
    Differential Revision: https://reviews.facebook.net/D8043
    2fdf91a4
db_impl.cc 76.4 KB