Improve comment & log for deferred claim
This commit is contained in:
1 parent
70110e483c
commit
d65409e97e
1 file changed
+2
-4
+2
-4
@@ -35,14 +35,12 @@ func (c *claim) Try(alloc *Allocator) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
// If our ring doesn't know, it must be empty. We will have initiated the
|
|
||||||
// bootstrap of the ring, so wait until we find some owner for this
|
|
||||||
// range (might be us).
|
|
||||||
switch owner := alloc.ring.Owner(c.addr); owner {
|
switch owner := alloc.ring.Owner(c.addr); owner {
|
||||||
case alloc.ourName:
|
case alloc.ourName:
|
||||||
// success
|
// success
|
||||||
case router.UnknownPeerName:
|
case router.UnknownPeerName:
|
||||||
alloc.infof("Ring is empty; will try later.", c.addr, owner)
|
// If our ring doesn't know, it must be empty.
|
||||||
|
alloc.infof("Claim %s for %s: address allocator still initializing; will try later.", c.addr, c.ident)
|
||||||
c.sendResult(nil) // don't make the caller wait
|
c.sendResult(nil) // don't make the caller wait
|
||||||
return false
|
return false
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in new issue
Block a user