mirror of
https://github.com/pgsty/minio.git
synced 2026-08-12 09:40:28 +03:00
XL: Operations on uploads.json should cater for disk being unavailable. (#2277)
This commit is contained in:
@@ -216,6 +216,11 @@ func (xl xlObjects) listBuckets() (bucketsInfo []BucketInfo, err error) {
|
||||
Created: volInfo.Created,
|
||||
})
|
||||
}
|
||||
// For buckets info empty, loop once again to check
|
||||
// if we have, can happen if disks are down.
|
||||
if len(bucketsInfo) == 0 {
|
||||
continue
|
||||
}
|
||||
return bucketsInfo, nil
|
||||
}
|
||||
// Ignore any disks not found.
|
||||
|
||||
Reference in New Issue
Block a user