• yiwu-arbug's avatar
    Reconstruct GC stats on reopen (#130) · 92f86d1b
    yiwu-arbug authored
    Summary:
    * On DB reopen, iterate all SST file's properties and sum up live data size of all blob files to use as GC stats.
    * Remove previous logic to set GC mark on blob files on reopen.
    * Refactor `OnFlushCompleted` and `OnCompactionCompleted`. Check file state is `kPendingLSM` before transit file state. 
    * Refactor `BlobFileMeta`.
    
    Test Plan:
    Updated unit tests
    Signed-off-by: 's avatarYi Wu <yiwu@pingcap.com>
    92f86d1b
blob_file_builder.cc 1.69 KB