forked from TrueCloudLab/rclone
azureblob - BugFix - Incorrect StageBlock invocation in multi-part uploads
fixes #2518. Incorrect formation of block list.
This commit is contained in:
parent
692ad482dc
commit
57b9fff904
1 changed files with 2 additions and 2 deletions
|
@ -1068,7 +1068,7 @@ func (o *Object) uploadMultipart(in io.Reader, size int64, blob *azblob.BlobURL,
|
||||||
var (
|
var (
|
||||||
rawID uint64
|
rawID uint64
|
||||||
blockID = "" // id in base64 encoded form
|
blockID = "" // id in base64 encoded form
|
||||||
blocks = make([]string, totalParts)
|
blocks []string
|
||||||
)
|
)
|
||||||
|
|
||||||
// increment the blockID
|
// increment the blockID
|
||||||
|
@ -1129,7 +1129,7 @@ outer:
|
||||||
bufferReader := bytes.NewReader(buf)
|
bufferReader := bytes.NewReader(buf)
|
||||||
wrappedReader := wrap(bufferReader)
|
wrappedReader := wrap(bufferReader)
|
||||||
rs := readSeeker{wrappedReader, bufferReader}
|
rs := readSeeker{wrappedReader, bufferReader}
|
||||||
_, err = blockBlobURL.StageBlock(ctx, blockID, rs, ac)
|
_, err = blockBlobURL.StageBlock(ctx, blockID, &rs, ac)
|
||||||
return o.fs.shouldRetry(err)
|
return o.fs.shouldRetry(err)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue