Skip to content

Commit

Permalink
Clear GonePartitions on every CreateSenders() (ydb-platform#10049)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberROFL authored Oct 3, 2024
1 parent 0e414ed commit 1a8906f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ydb/core/change_exchange/change_sender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ void TChangeSender::CreateSendersImpl(const TVector<ui64>& partitionIds) {
if (partitionIds) {
CreateMissingSenders(partitionIds);
} else {
RecreateSenders(std::exchange(GonePartitions, {}));
RecreateSenders(GonePartitions);
}

GonePartitions.clear();

if (!Enqueued || !RequestRecords()) {
SendRecords();
}
Expand Down

0 comments on commit 1a8906f

Please sign in to comment.