From 9a441726f19c7c5aa2bf29c887340999ffad9954 Mon Sep 17 00:00:00 2001 From: cjj2010 <2449402815@qq.com> Date: Fri, 27 Sep 2024 11:26:55 +0800 Subject: [PATCH] [enhance]change SpinLock to mutex for _tablets_channels_lock --- be/src/runtime/load_channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/runtime/load_channel.cpp b/be/src/runtime/load_channel.cpp index d4700c909e2bc7..95ca16a9af86a9 100644 --- a/be/src/runtime/load_channel.cpp +++ b/be/src/runtime/load_channel.cpp @@ -93,7 +93,7 @@ Status LoadChannel::open(const PTabletWriterOpenRequest& params) { int64_t index_id = params.index_id(); std::shared_ptr channel; { - (std::lock_guard(_lock)); + std::lock_guard l(_lock); auto it = _tablets_channels.find(index_id); if (it != _tablets_channels.end()) { channel = it->second;