yiguolei commented on code in PR #41968: URL: https://github.com/apache/doris/pull/41968#discussion_r1808662248
########## be/src/pipeline/exec/exchange_sink_buffer.cpp: ########## @@ -470,18 +424,13 @@ bool ExchangeSinkBuffer::_is_receiver_eof(InstanceLoId id) { return _instance_to_receiver_eof[id]; } -void ExchangeSinkBuffer::_turn_off_channel(InstanceLoId id, bool cleanup) { +void ExchangeSinkBuffer::_turn_off_channel(InstanceLoId id) { Review Comment: Just add the lock as a reference parameter, then we could make sure we locked. like _turn_off_channel(InstanceLoId id, std::unique_lock<std::mutex>&) -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org