|
@ -719,13 +719,13 @@ bool DBImpl::RemoveExpireTable() { |
|
|
if(meta->largest_deadtime < nowTime) { |
|
|
if(meta->largest_deadtime < nowTime) { |
|
|
remove = true; |
|
|
remove = true; |
|
|
edit.RemoveFile(level,meta->number); |
|
|
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) { |
|
|
if(remove) { |
|
|
versions_->LogAndApply(&edit,&mutex_); |
|
|
versions_->LogAndApply(&edit,&mutex_); |
|
|
RemoveObsoleteFiles(); |
|
|
|
|
|
|
|
|
// RemoveObsoleteFiles();
|
|
|
} |
|
|
} |
|
|
base->Unref(); |
|
|
base->Unref(); |
|
|
return remove; |
|
|
return remove; |
|
|