mirror of
https://github.com/pgsty/minio.git
synced 2026-10-18 07:26:10 +03:00
fix(listing): resolve undecidable list entries against the locked read path
Refs: https://github.com/pgsty/silo/issues/218 Signed-off-by: mr javad seydi <seydi.birjand@gmail.com>
This commit is contained in:
@@ -461,6 +461,16 @@ func (m metaCacheEntries) firstFound() (first *metaCacheEntry, n int) {
|
||||
return first, n
|
||||
}
|
||||
|
||||
// firstObject returns the first entry that contains object metadata.
|
||||
func (m metaCacheEntries) firstObject() *metaCacheEntry {
|
||||
for i := range m {
|
||||
if m[i].isObject() {
|
||||
return &m[i]
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// names will return all names in order.
|
||||
// Since this allocates it should not be used in critical functions.
|
||||
func (m metaCacheEntries) names() []string {
|
||||
|
||||
Reference in New Issue
Block a user