You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2026/01/18 03:49:56 UTC
(doris) branch master updated: [fix](wg) Add lock for concurrency read (#59960)
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 abcbb2b9fcb [fix](wg) Add lock for concurrency read (#59960)
abcbb2b9fcb is described below
commit abcbb2b9fcb71be0a1d1a62a4210204443dab292
Author: Gabriel <li...@selectdb.com>
AuthorDate: Sun Jan 18 11:49:48 2026 +0800
[fix](wg) Add lock for concurrency read (#59960)
---
be/src/runtime/workload_group/workload_group_manager.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/be/src/runtime/workload_group/workload_group_manager.cpp b/be/src/runtime/workload_group/workload_group_manager.cpp
index f671b7a6e14..ef8d3534eb6 100644
--- a/be/src/runtime/workload_group/workload_group_manager.cpp
+++ b/be/src/runtime/workload_group/workload_group_manager.cpp
@@ -871,6 +871,7 @@ void WorkloadGroupMgr::update_queries_limit_(WorkloadGroupPtr wg, bool enable_ha
}
void WorkloadGroupMgr::stop() {
+ std::shared_lock<std::shared_mutex> r_lock(_group_mutex);
for (auto iter = _workload_groups.begin(); iter != _workload_groups.end(); iter++) {
iter->second->try_stop_schedulers();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org