mirror of https://github.com/minio/minio.git
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
|
e *metaCacheEntry
|
||||||
}, 0, len(m))
|
}, 0, len(m))
|
||||||
}
|
}
|
||||||
r.candidates = r.candidates[0:]
|
r.candidates = r.candidates[:0]
|
||||||
for i := range m {
|
for i := range m {
|
||||||
entry := &m[i]
|
entry := &m[i]
|
||||||
if entry.name == "" {
|
if entry.name == "" {
|
||||||
|
|
Loading…
Reference in New Issue