From f1b2705d5e383d2d090451b90a038fd357601cd0 Mon Sep 17 00:00:00 2001 From: Alessandro Boch Date: Tue, 13 Oct 2015 10:27:26 -0700 Subject: [PATCH] Do not refresh the bitmasks on all operations in IPAM - Currently allocator pulls all the bitmasks from datastore before processing each public API. This is not needed as the APIs already selectively pull the interested bitmask when needed. Signed-off-by: Alessandro Boch --- libnetwork/ipam/allocator.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libnetwork/ipam/allocator.go b/libnetwork/ipam/allocator.go index 119031da89..54c1eda72f 100644 --- a/libnetwork/ipam/allocator.go +++ b/libnetwork/ipam/allocator.go @@ -84,10 +84,6 @@ func (a *Allocator) refresh(as string) error { return nil } - if err := a.updateBitMasks(aSpace); err != nil { - return fmt.Errorf("error updating bit masks during init: %v", err) - } - a.Lock() a.addrSpaces[as] = aSpace a.Unlock()