瀏覽代碼

小改动

pull/1/head^2
cyq 3 週之前
父節點
當前提交
7575417f53
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      db/db_impl.cc

+ 2
- 2
db/db_impl.cc 查看文件

@ -719,13 +719,13 @@ bool DBImpl::RemoveExpireTable() {
if(meta->largest_deadtime < nowTime) {
remove = true;
edit.RemoveFile(level,meta->number);
std::cout<<"remove file : "<<meta->number<<" from level : "<<level<<std::endl;
std::cout<<"remove file : "<<meta->number<<" from level : "<<level<<" deadtime : "<<meta->largest_deadtime<<std::endl;
}
}
}
if(remove) {
versions_->LogAndApply(&edit,&mutex_);
RemoveObsoleteFiles();
// RemoveObsoleteFiles();
}
base->Unref();
return remove;

Loading…
取消
儲存