Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
Signed-off-by: HunDunDM <hundundm@gmail.com>
  • Loading branch information
HunDunDM committed Oct 23, 2022
1 parent 150effb commit 44c9107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pd-simulator/simulator/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func responseToTask(engine *RaftEngine, resp *pdpb.RegionHeartbeatResponse) *Tas
cp2.promoteLearners = append(cp2.promoteLearners, peer)
case *demoteVoter:
subDesc = append(subDesc, fmt.Sprintf("demote peer %+v", peer))
cp2.demoteVoters = append(cp2.demoteVoters, cp.GetPeer())
cp2.demoteVoters = append(cp2.demoteVoters, peer)
default:
simutil.Logger.Error("cannot exec AddPeer or RemovePeer when using joint state")
return nil
Expand Down

0 comments on commit 44c9107

Please sign in to comment.