From f5790ae3966c23201ff0e874371a4dd7e01d0cce 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 5a2cc2d9db6957..5d563c309fec5a 100644 --- a/be/src/runtime/load_channel.cpp +++ b/be/src/runtime/load_channel.cpp @@ -67,7 +67,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;