yiguolei commented on code in PR #13960:
URL: https://github.com/apache/doris/pull/13960#discussion_r1013731494


##########
be/src/runtime/load_channel_mgr.h:
##########
@@ -85,6 +88,7 @@ class LoadChannelMgr {
     std::mutex _lock;
     // load id -> load channel
     std::unordered_map<UniqueId, std::shared_ptr<LoadChannel>> _load_channels;
+    SpinLock _load_channels_lock;
     std::shared_ptr<LoadChannel> _reduce_memory_channel = nullptr;

Review Comment:
   This lock's scope is same as _lock, I think we could just use _lock.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to