|
|
@ -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; |
|
|
|