Skip to content

Commit

Permalink
receiver buffer size should > max(source_num,max_streams) (pingcap#3445
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Nov 16, 2021
1 parent 9354286 commit 0c9c1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbms/src/Flash/Mpp/ExchangeReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ExchangeReceiverBase<RPCContext>::ExchangeReceiverBase(
, source_num(pb_exchange_receiver.encoded_task_meta_size())
, task_meta(meta)
, max_streams(max_streams_)
, max_buffer_size(max_streams_ * 2)
, max_buffer_size(std::max(source_num, max_streams_) * 2)
, res_buffer(max_buffer_size)
, live_connections(pb_exchange_receiver.encoded_task_meta_size())
, state(ExchangeReceiverState::NORMAL)
Expand Down

0 comments on commit 0c9c1ff

Please sign in to comment.