mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05:00
fix: entries not cleared on resolve (#13705)
This can cause old entries to be included (albeit unlikely) in resolution.
This commit is contained in:
parent
3da9ee15d3
commit
1cddbc80cf
@ -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 == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user