broadcast ipam ring update after rmpeer
So that other peers notice the change more promptly. Fixes #2068.
This commit is contained in:
1 parent
5dfd104728
commit
f42e275884
1 file changed
+4
-1
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user