Skip to content

Commit

Permalink
fix one bug about log append reject msg MsgUnreachable
Browse files Browse the repository at this point in the history
close tikv#11371

Signed-off-by: tier-cap <[email protected]>
  • Loading branch information
tier-cap committed Apr 21, 2022
1 parent 5483ec6 commit b8a9226
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/raftstore/src/store/fsm/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2061,6 +2061,14 @@ where
return Ok(());
}

if matches!(msg_type, MessageType::MsgUnreachable) {
self.fsm
.peer
.raft_group
.report_unreachable(msg.get_from_peer().get_id());
return Ok(());
}

if !self.validate_raft_msg(&msg) {
return Ok(());
}
Expand Down

0 comments on commit b8a9226

Please sign in to comment.