mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: do bcast when receiving msgBeat
This commit is contained in:
parent
09d1575eeb
commit
6fa74b0e33
@ -253,9 +253,7 @@ func (sm *stateMachine) Step(m Message) {
|
|||||||
if sm.state != stateLeader {
|
if sm.state != stateLeader {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// todo(xiangli) broadcast append
|
sm.bcastAppend()
|
||||||
// blocker github issue #13
|
|
||||||
sm.sendAppend()
|
|
||||||
case msgProp:
|
case msgProp:
|
||||||
switch sm.lead {
|
switch sm.lead {
|
||||||
case sm.addr:
|
case sm.addr:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user