Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'blobcontent' into alpha

  • Loading branch information...
commit c3b2d8327a33c02bf2913f7c22cacfb75fa1d007 2 parents 99a7b49 + 28d0fa7
@xmbms xmbms authored
View
11 WindowsAzurePowershell/src/Management.Storage/Blob/Cmdlet/GetAzureStorageBlobContent.cs
@@ -245,11 +245,18 @@ internal virtual void DownloadBlob(ICloudBlob blob, string filePath)
int interval = 1 * 1000; //in millisecond
BlobTransferOptions opts = new BlobTransferOptions();
- opts.ThreadCount = Environment.ProcessorCount * AsyncTasksPerCodeMultiplier;
+ opts.Concurrency = Environment.ProcessorCount * AsyncTasksPerCodeMultiplier;
+ bool checkMd5 = true;
+
+ if(blob.BlobType == BlobType.PageBlob)
+ {
+ //turn off the md5sum for page blob
+ checkMd5 = false;
+ }
using (BlobTransferManager transferManager = new BlobTransferManager(opts))
{
- transferManager.QueueDownload(blob, filePath, OnStart, OnProgress, OnFinish, pr);
+ transferManager.QueueDownload(blob, filePath, checkMd5, OnStart, OnProgress, OnFinish, pr);
while (!finished)
{
View
5 WindowsAzurePowershell/src/Management.Storage/Blob/Cmdlet/SetAzureStorageBlobContent.cs
@@ -282,15 +282,14 @@ internal virtual void Upload2Blob(string filePath, ICloudBlob blob)
WriteProgress(pr);
BlobTransferOptions opts = new BlobTransferOptions();
- opts.ThreadCount = Environment.ProcessorCount * AsyncTasksPerCodeMultiplier;
+ opts.Concurrency = Environment.ProcessorCount * AsyncTasksPerCodeMultiplier;
//status update interval
int interval = 1 * 1000; //in millisecond
using (BlobTransferManager transferManager = new BlobTransferManager(opts))
{
- transferManager.QueueUpload(blob, blob.BlobType, filePath,
- true, OnStart, OnProgress, OnFinish, pr);
+ transferManager.QueueUpload(blob, filePath, OnStart, OnProgress, OnFinish, pr);
while (!finished)
{
View
BIN  WindowsAzurePowershell/src/lib/Microsoft.WindowsAzure.Storage.DataMovement.dll
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.