X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a2d956a99bb08ff983b667c8af7d528aa0e8d5ba..5d843ab702bd516257dda1a872d45755e5170678:/services/datamanager/summary/pull_list.go diff --git a/services/datamanager/summary/pull_list.go b/services/datamanager/summary/pull_list.go index 6788576abd..d7fb3eb8f7 100644 --- a/services/datamanager/summary/pull_list.go +++ b/services/datamanager/summary/pull_list.go @@ -71,7 +71,7 @@ func ComputePullServers(kc *keepclient.KeepClient, blockToDesiredReplication map[blockdigest.DigestWithSize]int, underReplicated BlockSet) (m map[Locator]PullServers) { m = map[Locator]PullServers{} - // We use CanonicalString to avoid filling memory with dupicate + // We use CanonicalString to avoid filling memory with duplicate // copies of the same string. var cs CanonicalString @@ -183,9 +183,9 @@ func WritePullLists(arvLogger *logger.Logger, if arvLogger != nil { // We need a local variable because Update doesn't call our mutator func until later, // when our list variable might have been reused by the next loop iteration. + host := host + listLen := len(list) arvLogger.Update(func(p map[string]interface{}, e map[string]interface{}) { - host := host - listLen := len(list) pullListInfo := logger.GetOrCreateMap(p, "pull_list_len") pullListInfo[host] = listLen })