Skip to content

Commit

Permalink
[enhance]change SpinLock to mutex for _tablets_channels_lock
Browse files Browse the repository at this point in the history
  • Loading branch information
cjj2010 committed Dec 3, 2024
1 parent 1dafd26 commit 2d4ba01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/runtime/load_channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Status LoadChannel::open(const PTabletWriterOpenRequest& params) {
int64_t index_id = params.index_id();
std::shared_ptr<BaseTabletsChannel> channel;
{
(std::lock_guard<std::mutex>(_lock));
std::lock_guard<std::mutex> l(_lock);
auto it = _tablets_channels.find(index_id);
if (it != _tablets_channels.end()) {
channel = it->second;
Expand Down

0 comments on commit 2d4ba01

Please sign in to comment.