Skip to content

Commit

Permalink
fix bug that exchange receiver may hang forever (#2707) (#2710)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Sep 16, 2021
1 parent a1debcb commit a5eec5f
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 a5eec5f

Please sign in to comment.