Explorar el Código

raft: leader denies vote with the same term

Xiang Li hace 12 años
padre
commit
828a8cf326
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      raft/raft.go

+ 2 - 0
raft/raft.go

@@ -282,6 +282,8 @@ func (sm *stateMachine) Step(m Message) {
 					sm.sendAppend()
 				}
 			}
+		case msgVote:
+			sm.send(Message{To: m.From, Type: msgVoteResp, Index: -1})
 		}
 	case stateCandidate:
 		switch m.Type {