Skip to content

Commit 55ac2e3

Browse files
[Storage][DataMovement] Fix DataMovement Track1 perf tests (Azure#48637)
1 parent 967bb9c commit 55ac2e3

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

sdk/storage/Azure.Storage.DataMovement.Blobs/perf/Microsoft.Azure.Storage.DataMovement.Perf/Scenarios/CopyDirectory.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ public override async Task RunAsync(CancellationToken cancellationToken)
4242
_sourceContainer.GetDirectoryReference(string.Empty),
4343
_destinationContainer.GetDirectoryReference(string.Empty),
4444
CopyMethod.ServiceSideSyncCopy,
45-
options: null,
45+
new CopyDirectoryOptions()
46+
{
47+
Recursive = true
48+
},
4649
DefaultTransferContext,
4750
CancellationToken.None); // Don't pass cancellation token to let ransfer finish gracefully
4851
AssertTransferStatus(transfer);

sdk/storage/Azure.Storage.DataMovement.Blobs/perf/Microsoft.Azure.Storage.DataMovement.Perf/Scenarios/DownloadDirectory.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ public override async Task RunAsync(CancellationToken cancellationToken)
4141
TransferStatus transfer = await TransferManager.DownloadDirectoryAsync(
4242
_sourceContainer.GetDirectoryReference(string.Empty),
4343
_destinationDirectory,
44-
null,
44+
new DownloadDirectoryOptions()
45+
{
46+
Recursive = true
47+
},
4548
DefaultTransferContext,
4649
CancellationToken.None); // Don't pass cancellation token to let ransfer finish gracefully
4750
AssertTransferStatus(transfer);

sdk/storage/Azure.Storage.DataMovement.Blobs/perf/Microsoft.Azure.Storage.DataMovement.Perf/Scenarios/UploadDirectory.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ public override async Task RunAsync(CancellationToken cancellationToken)
4141
TransferStatus transfer = await TransferManager.UploadDirectoryAsync(
4242
_sourceDirectory,
4343
_destinationContainer.GetDirectoryReference(string.Empty),
44-
options: null,
44+
new UploadDirectoryOptions()
45+
{
46+
Recursive = true
47+
},
4548
DefaultTransferContext,
4649
CancellationToken.None); // Don't pass cancellation token to let ransfer finish gracefully
4750
AssertTransferStatus(transfer);

0 commit comments

Comments
 (0)