summaryrefslogtreecommitdiff
path: root/indra/llmessage
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2017-02-17 09:04:28 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2017-02-17 09:04:28 -0500
commit976b4f91ef3cfd36c0007d5b10d71c92b8bb3c44 (patch)
tree62a4f0395799564d9ff74afa8425052b404e998a /indra/llmessage
parent7d375ed9b7070e354a8072d7ffa137e005691dcd (diff)
SL-409 - more WIP on http fetching path for assets, capture results to LLVFile.
Diffstat (limited to 'indra/llmessage')
-rw-r--r--indra/llmessage/llassetstorage.cpp26
-rw-r--r--indra/llmessage/llassetstorage.h4
2 files changed, 9 insertions, 21 deletions
diff --git a/indra/llmessage/llassetstorage.cpp b/indra/llmessage/llassetstorage.cpp
index 78c7462286..7bf886ef26 100644
--- a/indra/llmessage/llassetstorage.cpp
+++ b/indra/llmessage/llassetstorage.cpp
@@ -546,13 +546,12 @@ void LLAssetStorage::getAssetData(const LLUUID uuid,
_queueDataRequest(uuid, type, callback, user_data, duplicate, is_priority);
}
-
}
// static
-void LLAssetStorage::removeAndCallbackPendingDownloads(S32 result, const LLUUID& file_id, LLAssetType::EType file_type,
+void LLAssetStorage::removeAndCallbackPendingDownloads(const LLUUID& file_id, LLAssetType::EType file_type,
const LLUUID& callback_id, LLAssetType::EType callback_type,
- LLExtStat ext_status)
+ S32 result_code, LLExtStat ext_status)
{
// find and callback ALL pending requests for this UUID
// SJB: We process the callbacks in reverse order, I do not know if this is important,
@@ -576,11 +575,11 @@ void LLAssetStorage::removeAndCallbackPendingDownloads(S32 result, const LLUUID&
LLAssetRequest* tmp = *curiter;
if (tmp->mDownCallback)
{
- if (result != LL_ERR_NOERR)
+ if (result_code!= LL_ERR_NOERR)
{
add(sFailedDownloadCount, 1);
}
- tmp->mDownCallback(gAssetStorage->mVFS, callback_id, callback_type, tmp->mUserData, result, ext_status);
+ tmp->mDownCallback(gAssetStorage->mVFS, callback_id, callback_type, tmp->mUserData, result_code, ext_status);
}
delete tmp;
}
@@ -644,7 +643,7 @@ void LLAssetStorage::downloadCompleteCallback(
}
}
- removeAndCallbackPendingDownloads(result, file_id, file_type, callback_id, callback_type, ext_status);
+ removeAndCallbackPendingDownloads(file_id, file_type, callback_id, callback_type, ext_status, result);
}
void LLAssetStorage::getEstateAsset(
@@ -806,19 +805,6 @@ void LLAssetStorage::getInvItemAsset(
{
LL_DEBUGS() << "LLAssetStorage::getInvItemAsset() - " << asset_id << "," << LLAssetType::lookup(atype) << LL_ENDL;
- //
- // Probably will get rid of this early out?
- //
- //if (asset_id.isNull())
- //{
- // // Special case early out for NULL uuid
- // if (callback)
- // {
- // callback(mVFS, asset_id, atype, user_data, LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE);
- // }
- // return;
- //}
-
bool exists = false;
U32 size = 0;
@@ -879,6 +865,8 @@ void LLAssetStorage::getInvItemAsset(
spi.setInvItem(owner_id, task_id, item_id);
spi.setAsset(asset_id, atype);
+ LL_DEBUGS("ViewerAsset") << "requesting inv item id " << item_id << " asset_id " << asset_id << " type " << LLAssetType::lookup(atype) << LL_ENDL;
+
// Set our destination file, and the completion callback.
LLTransferTargetParamsVFile tpvf;
tpvf.setAsset(asset_id, atype);
diff --git a/indra/llmessage/llassetstorage.h b/indra/llmessage/llassetstorage.h
index e1c6028fa0..2ec8ac31b4 100644
--- a/indra/llmessage/llassetstorage.h
+++ b/indra/llmessage/llassetstorage.h
@@ -319,9 +319,9 @@ public:
const LLUUID& asset_id);
- static void removeAndCallbackPendingDownloads(S32 result, const LLUUID& file_id, LLAssetType::EType file_type,
+ static void removeAndCallbackPendingDownloads(const LLUUID& file_id, LLAssetType::EType file_type,
const LLUUID& callback_id, LLAssetType::EType callback_type,
- LLExtStat ext_status);
+ S32 result_code, LLExtStat ext_status);
// download process callbacks
static void downloadCompleteCallback(