Merge pull request #3629 from weaveworks/issue-3628
gossip broadcast updated ring on donating a range to other peer
This commit is contained in:
1 file changed
+1
@@ -910,6 +910,7 @@ func (alloc *Allocator) donateSpace(r address.Range, to mesh.PeerName) {
|
|||||||
alloc.debugln("Giving range", chunk, "to", to)
|
alloc.debugln("Giving range", chunk, "to", to)
|
||||||
alloc.ring.GrantRangeToHost(chunk.Start, chunk.End, to)
|
alloc.ring.GrantRangeToHost(chunk.Start, chunk.End, to)
|
||||||
alloc.persistRing()
|
alloc.persistRing()
|
||||||
|
alloc.gossip.GossipBroadcast(alloc.Gossip())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (alloc *Allocator) assertInvariants() {
|
func (alloc *Allocator) assertInvariants() {
|
||||||
|
|||||||
Reference in new issue
Block a user