Refactor to collect all code that touches alloc.owned

This commit is contained in:
Bryan Boreham committed 2016-02-02 13:57:12 +00:00
1 parent faa7bad8d8
commit 71da517e88
2 files changed
+42 -21

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ func (g *allocate) Try(alloc *Allocator) bool {
return true
}
if addr, found := alloc.lookupOwned(g.ident, g.r); found {
if addr, found := alloc.ownedInRange(g.ident, g.r); found {
// If we had heard that this container died, resurrect it
delete(alloc.dead, g.ident) // delete is no-op if key not in map
g.resultChan <- allocateResult{addr, nil}