• P
    Fixing delete files in Trivial move of universal compaction · beb19ad0
    Poornima Chozhiyath Raman 提交于
    Summary:
    Trvial move in universal compaction was failing when trying to move files from levels other than 0.
    This was because the DeleteFile while trivially moving, was only deleting files of level 0 which caused duplication of same file in different levels.
    This is fixed by passing the right level as argument in the call of DeleteFile while doing trivial move.
    
    Test Plan: ./db_test ran successfully with the new test cases.
    
    Reviewers: sdong
    
    Reviewed By: sdong
    
    Subscribers: leveldb, dhruba
    
    Differential Revision: https://reviews.facebook.net/D42135
    beb19ad0
db_impl.cc 158.0 KB