Broadcast initial ring after persisting it, in case we die between those operations
This commit is contained in:
1 parent
6847a3551d
commit
3252a25e00
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -650,8 +650,8 @@ func (alloc *Allocator) establishRing() {
|
||||
func (alloc *Allocator) createRing(peers []mesh.PeerName) {
|
||||
alloc.debugln("Paxos consensus:", peers)
|
||||
alloc.ring.ClaimForPeers(normalizeConsensus(peers))
|
||||
alloc.gossip.GossipBroadcast(alloc.Gossip())
|
||||
alloc.ringUpdated()
|
||||
alloc.gossip.GossipBroadcast(alloc.Gossip())
|
||||
}
|
||||
|
||||
func (alloc *Allocator) ringUpdated() {
|
||||
|
||||
Reference in new issue
Block a user