• 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
Name
Last commit
Last update
cmake Loading commit data...
include/titan Loading commit data...
scripts Loading commit data...
src Loading commit data...
tools Loading commit data...
util Loading commit data...
.clion.source.upload.marker Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
codecov.yml Loading commit data...