mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
use listPathRaw for HealObjects() instead of expensive WalkVersions() (#11675)
This commit is contained in:
@@ -232,15 +232,16 @@ func (m metaCacheEntries) resolve(r *metadataResolutionParams) (selected *metaCa
|
||||
}
|
||||
}
|
||||
|
||||
// If directory, we need quorum.
|
||||
if dirExists > 0 && dirExists < r.dirQuorum {
|
||||
if selected == nil {
|
||||
return nil, false
|
||||
}
|
||||
if objExists < r.objQuorum {
|
||||
|
||||
if selected.isDir() && dirExists < r.dirQuorum {
|
||||
return nil, false
|
||||
} else if !selected.isDir() && objExists < r.objQuorum {
|
||||
return nil, false
|
||||
}
|
||||
// Take the latest selected.
|
||||
return selected, selected != nil
|
||||
return selected, true
|
||||
}
|
||||
|
||||
// firstFound returns the first found and the number of set entries.
|
||||
|
||||
Reference in New Issue
Block a user