mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
fix: nil pointer access in warmBackendAzure.Put (#13263)
This commit is contained in:
parent
8392765213
commit
32df742b85
@ -66,7 +66,10 @@ func (az *warmBackendAzure) Put(ctx context.Context, object string, r io.Reader,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
res, err := azblob.UploadStreamToBlockBlob(ctx, r, blobURL, azblob.UploadStreamToBlockBlobOptions{})
|
res, err := azblob.UploadStreamToBlockBlob(ctx, r, blobURL, azblob.UploadStreamToBlockBlobOptions{})
|
||||||
return remoteVersionID(res.Version()), azureToObjectError(err, az.Bucket, object)
|
if err != nil {
|
||||||
|
return "", azureToObjectError(err, az.Bucket, object)
|
||||||
|
}
|
||||||
|
return remoteVersionID(res.Version()), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (az *warmBackendAzure) Get(ctx context.Context, object string, rv remoteVersionID, opts WarmBackendGetOpts) (r io.ReadCloser, err error) {
|
func (az *warmBackendAzure) Get(ctx context.Context, object string, rv remoteVersionID, opts WarmBackendGetOpts) (r io.ReadCloser, err error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user