From 2d4ba01e8f1bc50eab0fb3a53dca06c7c4302cf3 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 dd0d1110e7ea24..9369c0c833c53c 100644 --- a/be/src/runtime/load_channel.cpp +++ b/be/src/runtime/load_channel.cpp @@ -115,7 +115,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;