Skip to content

Commit

Permalink
fix bug that exchange receiver may hang forever (#2707)
Browse files Browse the repository at this point in the history
  • Loading branch information
windtalker authored Aug 17, 2021
1 parent bb5ad27 commit 1e071f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion dbms/src/Flash/Mpp/ExchangeReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ void ExchangeReceiver::setUpConnection()
{
auto & meta = pb_exchange_receiver.encoded_task_meta(index);
std::thread t(&ExchangeReceiver::ReadLoop, this, std::ref(meta), index);
live_connections++;
workers.push_back(std::move(t));
}
}
Expand Down
2 changes: 1 addition & 1 deletion dbms/src/Flash/Mpp/ExchangeReceiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class ExchangeReceiver
source_num(pb_exchange_receiver.encoded_task_meta_size()),
task_meta(meta),
max_buffer_size(max_buffer_size_),
live_connections(0),
live_connections(pb_exchange_receiver.encoded_task_meta_size()),
state(NORMAL),
log(&Logger::get("exchange_receiver"))
{
Expand Down

0 comments on commit 1e071f0

Please sign in to comment.