Browse Source

fix unnormal size bug

xxy
小人鱼 9 months ago
parent
commit
52b4a3ca0b
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      db/db_impl.cc

+ 7
- 0
db/db_impl.cc View File

@ -1742,7 +1742,14 @@ void DBImpl::GarbageCollect() {
valuelog_set.emplace(filename);
}
}
bool tmp_judge=false;//only clean one file
for (std::string valuelog_name : valuelog_set) {
if(tmp_judge){
break;
}
else{
tmp_judge=true;
}
uint64_t cur_log_number = GetValueLogID(valuelog_name);
valuelog_name = ValueLogFileName(dbname_, cur_log_number);
if (cur_log_number == valuelogfile_number_) {

Loading…
Cancel
Save