mirror of
https://github.com/minio/minio.git
synced 2025-04-01 02:03:42 -04: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
|
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…
x
Reference in New Issue
Block a user