diff options
Diffstat (limited to 'linden/indra/llmessage/llhttpassetstorage.cpp')
-rw-r--r-- | linden/indra/llmessage/llhttpassetstorage.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/linden/indra/llmessage/llhttpassetstorage.cpp b/linden/indra/llmessage/llhttpassetstorage.cpp index b6c20b9..924d903 100644 --- a/linden/indra/llmessage/llhttpassetstorage.cpp +++ b/linden/indra/llmessage/llhttpassetstorage.cpp | |||
@@ -464,7 +464,7 @@ void LLHTTPAssetStorage::storeAssetData( | |||
464 | llwarns << "AssetStorage: attempt to upload non-existent vfile " << uuid << ":" << LLAssetType::lookup(type) << llendl; | 464 | llwarns << "AssetStorage: attempt to upload non-existent vfile " << uuid << ":" << LLAssetType::lookup(type) << llendl; |
465 | if (callback) | 465 | if (callback) |
466 | { | 466 | { |
467 | callback(uuid, user_data, LL_ERR_ASSET_REQUEST_NONEXISTENT_FILE ); | 467 | callback(uuid, user_data, LL_ERR_ASSET_REQUEST_NONEXISTENT_FILE, LL_EXSTAT_NONEXISTENT_FILE); |
468 | } | 468 | } |
469 | } | 469 | } |
470 | } | 470 | } |
@@ -529,7 +529,7 @@ void LLHTTPAssetStorage::storeAssetData( | |||
529 | { | 529 | { |
530 | if (callback) | 530 | if (callback) |
531 | { | 531 | { |
532 | callback(LLUUID::null, user_data, LL_ERR_CANNOT_OPEN_FILE); | 532 | callback(LLUUID::null, user_data, LL_ERR_CANNOT_OPEN_FILE, LL_EXSTAT_BLOCKED_FILE); |
533 | } | 533 | } |
534 | } | 534 | } |
535 | // Coverity CID-269 says there's a leak of 'legacy' here, but | 535 | // Coverity CID-269 says there's a leak of 'legacy' here, but |
@@ -631,7 +631,7 @@ bool LLHTTPAssetStorage::deletePendingRequest(LLAssetStorage::ERequestType rt, | |||
631 | { | 631 | { |
632 | if (pending_req->mUpCallback) //Clean up here rather than _callUploadCallbacks because this request is already cleared the req. | 632 | if (pending_req->mUpCallback) //Clean up here rather than _callUploadCallbacks because this request is already cleared the req. |
633 | { | 633 | { |
634 | pending_req->mUpCallback(pending_req->getUUID(), pending_req->mUserData, -1); | 634 | pending_req->mUpCallback(pending_req->getUUID(), pending_req->mUserData, -1, LL_EXSTAT_REQUEST_DROPPED); |
635 | } | 635 | } |
636 | 636 | ||
637 | } | 637 | } |
@@ -657,7 +657,7 @@ bool LLHTTPAssetStorage::deletePendingRequest(LLAssetStorage::ERequestType rt, | |||
657 | 657 | ||
658 | // internal requester, used by getAssetData in superclass | 658 | // internal requester, used by getAssetData in superclass |
659 | void LLHTTPAssetStorage::_queueDataRequest(const LLUUID& uuid, LLAssetType::EType type, | 659 | void LLHTTPAssetStorage::_queueDataRequest(const LLUUID& uuid, LLAssetType::EType type, |
660 | void (*callback)(LLVFS *vfs, const LLUUID&, LLAssetType::EType, void *, S32), | 660 | void (*callback)(LLVFS *vfs, const LLUUID&, LLAssetType::EType, void *, S32, LLExtStat), |
661 | void *user_data, BOOL duplicate, | 661 | void *user_data, BOOL duplicate, |
662 | BOOL is_priority) | 662 | BOOL is_priority) |
663 | { | 663 | { |
@@ -922,7 +922,7 @@ void LLHTTPAssetStorage::checkForTimeouts() | |||
922 | { | 922 | { |
923 | // shared upload finished callback | 923 | // shared upload finished callback |
924 | // in the base class, this is called from processUploadComplete | 924 | // in the base class, this is called from processUploadComplete |
925 | _callUploadCallbacks(req->getUUID(), req->getType(), (xfer_result == 0)); | 925 | _callUploadCallbacks(req->getUUID(), req->getType(), (xfer_result == 0), LL_EXSTAT_CURL_RESULT | curl_result); |
926 | // Pending upload flag will get cleared when the request is deleted | 926 | // Pending upload flag will get cleared when the request is deleted |
927 | } | 927 | } |
928 | } | 928 | } |
@@ -964,7 +964,8 @@ void LLHTTPAssetStorage::checkForTimeouts() | |||
964 | xfer_result, | 964 | xfer_result, |
965 | req->getUUID(), | 965 | req->getUUID(), |
966 | req->getType(), | 966 | req->getType(), |
967 | (void *)req); | 967 | (void *)req, |
968 | LL_EXSTAT_CURL_RESULT | curl_result); | ||
968 | // Pending download flag will get cleared when the request is deleted | 969 | // Pending download flag will get cleared when the request is deleted |
969 | } | 970 | } |
970 | else | 971 | else |
@@ -1389,3 +1390,4 @@ void LLHTTPAssetStorage::clearTempAssetData() | |||
1389 | mTempAssets.clear(); | 1390 | mTempAssets.clear(); |
1390 | } | 1391 | } |
1391 | 1392 | ||
1393 | |||