1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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 <aboch@docker.com>
This commit is contained in:
Alessandro Boch 2015-10-13 10:27:26 -07:00
parent c14ab8592e
commit f1b2705d5e

View file

@ -84,10 +84,6 @@ func (a *Allocator) refresh(as string) error {
return nil return nil
} }
if err := a.updateBitMasks(aSpace); err != nil {
return fmt.Errorf("error updating bit masks during init: %v", err)
}
a.Lock() a.Lock()
a.addrSpaces[as] = aSpace a.addrSpaces[as] = aSpace
a.Unlock() a.Unlock()