mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -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{})
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user