Skip to content

Commit

Permalink
bugfix: drop item in write queue when slave binlog sync timeout (Open…
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelai authored Sep 1, 2020
1 parent 041cc20 commit d94339f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pika_rm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ Status SyncMasterPartition::CheckSyncTimeout(uint64_t now) {

for (auto& node : to_del) {
coordinator_.SyncPros().RemoveSlaveNode(node.Ip(), node.Port());
g_pika_rm->DropItemInWriteQueue(node.Ip(), node.Port());
LOG(WARNING) << SyncPartitionInfo().ToString() << " Master del Recv Timeout slave success " << node.ToString();
}
return Status::OK();
Expand Down

0 comments on commit d94339f

Please sign in to comment.