broadcast ipam ring update after rmpeer

So that other peers notice the change more promptly.

Fixes #2068.
This commit is contained in:
Matthias Radestock committed 2016-03-19 13:57:20 +00:00
1 parent 5dfd104728
commit f42e275884
1 file changed
+4 -1
+4 -1
View File
@@ -334,7 +334,10 @@ func (alloc *Allocator) AdminTakeoverRanges(peerNameOrNickname string) error {
}
newRanges, err := alloc.ring.Transfer(peername, alloc.ourName)
alloc.space.AddRanges(newRanges)
if err == nil && len(newRanges) > 0 {
alloc.space.AddRanges(newRanges)
alloc.gossip.GossipBroadcast(alloc.Gossip())
}
resultChan <- err
}
return <-resultChan