XL: Operations on uploads.json should cater for disk being unavailable. (#2277)

This commit is contained in:
Harshavardhana
2016-07-24 18:08:15 -07:00
committed by GitHub
parent 7e5a78985d
commit 79bab6b561
4 changed files with 45 additions and 49 deletions
+5
View File
@@ -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.