"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
azureblob: speed up server side copies for small files #8249
Nick Craig-Woodac3f7a87c331
diff --git a/backend/azureblob/azureblob.go b/backend/azureblob/azureblob.goindex d5733c910..441473e13 100644--- a/backend/azureblob/azureblob.go+++ b/backend/azureblob/azureblob.go@@ -1649,13 +1649,15 @@ func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (fs.Object,copyStatus := startCopy.CopyStatusgetOptions := blob.GetPropertiesOptions{}+ pollTime := 100 * time.Millisecondfor copyStatus != nil && string(*copyStatus) == string(container.CopyStatusTypePending) {- time.Sleep(1 * time.Second)+ time.Sleep(pollTime)getMetadata, err := dstBlobSVC.GetProperties(ctx, &getOptions)if err != nil {return nil, err}copyStatus = getMetadata.CopyStatus+ pollTime = min(2*pollTime, time.Second)}return f.NewObject(ctx, remote)