From d65409e97e2ae168388e002b647556ebe21baa5f Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Wed, 15 Jul 2015 14:05:17 +0100 Subject: [PATCH] Improve comment & log for deferred claim --- ipam/claim.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ipam/claim.go b/ipam/claim.go index 63212cd7..d37f0bce 100644 --- a/ipam/claim.go +++ b/ipam/claim.go @@ -35,14 +35,12 @@ func (c *claim) Try(alloc *Allocator) bool { 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 { case alloc.ourName: // success 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 return false default: