diff --git a/cmd/metacache-entries.go b/cmd/metacache-entries.go index 7d2b353af..f2387cc52 100644 --- a/cmd/metacache-entries.go +++ b/cmd/metacache-entries.go @@ -262,7 +262,7 @@ func (m metaCacheEntries) resolve(r *metadataResolutionParams) (selected *metaCa e *metaCacheEntry }, 0, len(m)) } - r.candidates = r.candidates[0:] + r.candidates = r.candidates[:0] for i := range m { entry := &m[i] if entry.name == "" {