[optimize](cooldown)If cooldowned_rowsets is empty, there is no need to follow the logic of traversing the files (#27324)

Co-authored-by: xingying01 <xingying01@corp.netease.com>
This commit is contained in:
xy
2024-01-05 18:59:09 +08:00
committed by GitHub
parent eea6219920
commit 2a6150b057

View File

@ -2553,6 +2553,9 @@ void Tablet::remove_unused_remote_files() {
cooldowned_rowsets.insert(rs_meta->rowset_id());
}
}
if (cooldowned_rowsets.empty()) {
return;
}
cooldown_meta_id = t->_tablet_meta->cooldown_meta_id();
}
auto [cooldown_replica_id, cooldown_term] = t->cooldown_conf();