Browse Source

小改动

pull/1/head^2
cyq 1 month ago
parent
commit
7575417f53
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      db/db_impl.cc

+ 2
- 2
db/db_impl.cc View File

@ -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…
Cancel
Save