code lint

pull/334/head
groot 2019-11-14 19:39:35 +08:00
parent bb5f38b0dd
commit 94c2427f55
1 changed files with 2 additions and 2 deletions

View File

@ -622,10 +622,10 @@ DBImpl::StartCompactionTask() {
// collect merge files for all tables(if compact_table_ids_ is empty) for two reasons:
// 1. other tables may still has un-merged files
// 2. server may be closed unexpected, these un-merge files need to be merged when server restart
if(compact_table_ids_.empty()) {
if (compact_table_ids_.empty()) {
std::vector<meta::TableSchema> table_schema_array;
meta_ptr_->AllTables(table_schema_array);
for( auto& schema : table_schema_array) {
for (auto& schema : table_schema_array) {
compact_table_ids_.insert(schema.table_id_);
}
}