This is an automated email from the ASF dual-hosted git repository.
dataroaring 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 0a10004723b [Fix](profile) Fix incorrect profile timer
`_sync_rowset_timer` (#46925)
0a10004723b is described below
commit 0a10004723beb22007260e6996f97bf23c5ef168
Author: bobhan1 <[email protected]>
AuthorDate: Tue Jan 14 09:46:31 2025 +0800
[Fix](profile) Fix incorrect profile timer `_sync_rowset_timer` (#46925)
---
be/src/pipeline/exec/olap_scan_operator.cpp | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/be/src/pipeline/exec/olap_scan_operator.cpp
b/be/src/pipeline/exec/olap_scan_operator.cpp
index b1ab6274332..6fc65bbbbe8 100644
--- a/be/src/pipeline/exec/olap_scan_operator.cpp
+++ b/be/src/pipeline/exec/olap_scan_operator.cpp
@@ -322,15 +322,17 @@ Status
OlapScanLocalState::_init_scanners(std::list<vectorized::VScannerSPtr>* s
if (config::is_cloud_mode()) {
int64_t duration_ns = 0;
- SCOPED_RAW_TIMER(&duration_ns);
- std::vector<std::function<Status()>> tasks;
- tasks.reserve(_scan_ranges.size());
- for (auto&& [tablet, version] : tablets) {
- tasks.emplace_back([tablet, version]() {
- return
std::dynamic_pointer_cast<CloudTablet>(tablet)->sync_rowsets(version);
- });
+ {
+ SCOPED_RAW_TIMER(&duration_ns);
+ std::vector<std::function<Status()>> tasks;
+ tasks.reserve(_scan_ranges.size());
+ for (auto&& [tablet, version] : tablets) {
+ tasks.emplace_back([tablet, version]() {
+ return
std::dynamic_pointer_cast<CloudTablet>(tablet)->sync_rowsets(version);
+ });
+ }
+ RETURN_IF_ERROR(cloud::bthread_fork_join(tasks, 10));
}
- RETURN_IF_ERROR(cloud::bthread_fork_join(tasks, 10));
_sync_rowset_timer->update(duration_ns);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]