This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 2a6150b057d [optimize](cooldown)If cooldowned_rowsets is empty, there
is no need to follow the logic of traversing the files (#27324)
2a6150b057d is described below
commit 2a6150b057d7fb5be2aa62683e217cfc8ad49ae2
Author: xy <[email protected]>
AuthorDate: Fri Jan 5 18:59:09 2024 +0800
[optimize](cooldown)If cooldowned_rowsets is empty, there is no need to
follow the logic of traversing the files (#27324)
Co-authored-by: xingying01 <[email protected]>
---
be/src/olap/tablet.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp
index d6d4888fd64..da9d8c5b011 100644
--- a/be/src/olap/tablet.cpp
+++ b/be/src/olap/tablet.cpp
@@ -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();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]