Skip to content

Commit 4bb5ec2

Browse files
Jinming-Huvinjiang
authored andcommitted
Fix bug: MD5 missing exception is not retryable
1 parent fa7d0d3 commit 4bb5ec2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Microsoft.WindowsAzure.Storage/src/cloud_blob.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -597,11 +597,11 @@ namespace azure { namespace storage {
597597

598598
if (modified_options.use_transactional_md5() && !modified_options.disable_content_md5_validation() && download_info->m_response_md5.empty())
599599
{
600-
throw storage_exception(protocol::error_missing_md5);
600+
throw storage_exception(protocol::error_missing_md5, false);
601601
}
602602
if (!modified_options.use_transactional_md5() && modified_options.use_transactional_crc64() && !modified_options.disable_content_crc64_validation() && download_info->m_response_crc64.empty())
603603
{
604-
throw storage_exception(protocol::error_missing_crc64);
604+
throw storage_exception(protocol::error_missing_crc64, false);
605605
}
606606

607607
// Lock to the current storage location when resuming a failed download. This is locked

Microsoft.WindowsAzure.Storage/src/cloud_file.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ namespace azure { namespace storage {
544544
// Consider the file has no MD5 hash in default.
545545
&& offset < std::numeric_limits<utility::size64_t>::max())
546546
{
547-
throw storage_exception(protocol::error_missing_md5);
547+
throw storage_exception(protocol::error_missing_md5, false);
548548
}
549549

550550
// Lock to the current storage location when resuming a failed download. This is locked

0 commit comments

Comments
 (0)