mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Vendor swarmkit 8f053c2
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
parent
0fe924ad98
commit
077f08bf54
28 changed files with 567 additions and 339 deletions
4
vendor/github.com/coreos/etcd/raft/raft.go
generated
vendored
4
vendor/github.com/coreos/etcd/raft/raft.go
generated
vendored
|
@ -1154,6 +1154,10 @@ func (r *raft) addNode(id uint64) {
|
|||
}
|
||||
|
||||
r.setProgress(id, 0, r.raftLog.lastIndex()+1)
|
||||
// When a node is first added, we should mark it as recently active.
|
||||
// Otherwise, CheckQuorum may cause us to step down if it is invoked
|
||||
// before the added node has a chance to communicate with us.
|
||||
r.prs[id].RecentActive = true
|
||||
}
|
||||
|
||||
func (r *raft) removeNode(id uint64) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue