[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:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user