Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit e81790c

Browse files
rahuldutta90vinjiang
authored andcommitted
Fix the variable name
1 parent 5df692b commit e81790c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Microsoft.WindowsAzure.Storage/src/executor.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ namespace azure { namespace storage { namespace core {
285285
{
286286
bool retryable_exception = true;
287287
instance->m_context._get_impl()->add_request_result(instance->m_request_result);
288-
std::exception_ptr ex_ptr = nullptr;
288+
// Currently this holds exception pointer to non storage exceptions (exceptions thrown from cpp_rest)
289+
std::exception_ptr nonstorage_ex_ptr = nullptr;
289290

290291
try
291292
{
@@ -299,7 +300,7 @@ namespace azure { namespace storage { namespace core {
299300
throw;
300301
}
301302
catch (...) {
302-
ex_ptr = std::current_exception();
303+
nonstorage_ex_ptr = std::current_exception();
303304
throw;
304305
}
305306
}
@@ -341,7 +342,7 @@ namespace azure { namespace storage { namespace core {
341342
}
342343

343344
// An exception occurred and thus the request might be retried. Ask the retry policy.
344-
retry_context context(instance->m_retry_count++, instance->m_request_result, instance->get_next_location(), instance->m_current_location_mode, ex_ptr);
345+
retry_context context(instance->m_retry_count++, instance->m_request_result, instance->get_next_location(), instance->m_current_location_mode, nonstorage_ex_ptr);
345346
retry_info retry(instance->m_retry_policy.evaluate(context, instance->m_context));
346347
if (!retry.should_retry())
347348
{

0 commit comments

Comments
 (0)