raft: fix detected race in node.go

This commit is contained in:
Xiang Li 2016-04-22 15:45:33 -07:00
parent af30795752
commit 59c5110b73

View File

@ -325,7 +325,7 @@ func (n *node) run(r *raft) {
// block incoming proposal when local node is
// removed
if cc.NodeID == r.id {
n.propc = nil
propc = nil
}
r.removeNode(cc.NodeID)
case pb.ConfChangeUpdateNode: