mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
xl/bootup: Server bootup shouldn't return for missing buckets. (#3255)
Ref #3196
This commit is contained in:
@@ -142,11 +142,6 @@ func getOldBucketsConfigPath() (string, error) {
|
||||
// readBucketPolicyJSON - reads bucket policy for an input bucket, returns BucketPolicyNotFound
|
||||
// if bucket policy is not found.
|
||||
func readBucketPolicyJSON(bucket string, objAPI ObjectLayer) (bucketPolicyReader io.Reader, err error) {
|
||||
// Verify if bucket actually exists
|
||||
if err = isBucketExist(bucket, objAPI); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
policyPath := pathJoin(bucketConfigPrefix, bucket, policyJSON)
|
||||
objInfo, err := objAPI.GetObjectInfo(minioMetaBucket, policyPath)
|
||||
err = errorCause(err)
|
||||
|
||||
Reference in New Issue
Block a user