From 6a773289e7b8aab46b2dda0b5fa89fbae022409d Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 13 Oct 2018 17:46:59 +0100 Subject: [PATCH] azureblob: work around SDK bug which causes errors for chunk-sized files See https://github.com/Azure/azure-storage-blob-go/pull/75 for details --- backend/azureblob/azureblob.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/azureblob/azureblob.go b/backend/azureblob/azureblob.go index e3baefa30..021040de5 100644 --- a/backend/azureblob/azureblob.go +++ b/backend/azureblob/azureblob.go @@ -1269,7 +1269,7 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOptio } putBlobOptions := azblob.UploadStreamToBlockBlobOptions{ - BufferSize: int(o.fs.opt.ChunkSize), + BufferSize: int(o.fs.opt.ChunkSize) + 1, // +1 Needed until https://github.com/Azure/azure-storage-blob-go/pull/75 is merged MaxBuffers: 4, Metadata: o.meta, BlobHTTPHeaders: httpHeaders,