aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llassetstorage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/llassetstorage.cpp')
-rw-r--r--linden/indra/llmessage/llassetstorage.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/linden/indra/llmessage/llassetstorage.cpp b/linden/indra/llmessage/llassetstorage.cpp
index a8cd0e5..4f4fc0c 100644
--- a/linden/indra/llmessage/llassetstorage.cpp
+++ b/linden/indra/llmessage/llassetstorage.cpp
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2001-2007, Linden Research, Inc. 5 * Copyright (c) 2001-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -434,20 +435,21 @@ void LLAssetStorage::getAssetData(const LLUUID uuid, LLAssetType::EType type, vo
434 if (callback == tmp->mDownCallback && user_data == tmp->mUserData) 435 if (callback == tmp->mDownCallback && user_data == tmp->mUserData)
435 { 436 {
436 // this is a duplicate from the same subsystem - throw it away 437 // this is a duplicate from the same subsystem - throw it away
437 llinfos << "Discarding duplicate request for UUID " << uuid << llendl; 438 llwarns << "Discarding duplicate request for asset " << uuid
439 << "." << LLAssetType::lookup(type) << llendl;
438 return; 440 return;
439 } 441 }
440 else
441 {
442 llinfos << "Adding additional non-duplicate request for UUID " << uuid << llendl;
443 }
444 442
445 // this is a duplicate request 443 // this is a duplicate request
446 // queue the request, but don't actually ask for it again 444 // queue the request, but don't actually ask for it again
447 duplicate = TRUE; 445 duplicate = TRUE;
448 break;
449 } 446 }
450 } 447 }
448 if (duplicate)
449 {
450 llinfos << "Adding additional non-duplicate request for asset " << uuid
451 << "." << LLAssetType::lookup(type) << llendl;
452 }
451 453
452 // This can be overridden by subclasses 454 // This can be overridden by subclasses
453 _queueDataRequest(uuid, type, callback, user_data, duplicate, is_priority); 455 _queueDataRequest(uuid, type, callback, user_data, duplicate, is_priority);
@@ -1272,7 +1274,7 @@ void LLAssetStorage::legacyGetDataCallback(LLVFS *vfs, const LLUUID &uuid, LLAss
1272 char uuid_str[UUID_STR_LENGTH]; /* Flawfinder: ignore */ 1274 char uuid_str[UUID_STR_LENGTH]; /* Flawfinder: ignore */
1273 1275
1274 uuid.toString(uuid_str); 1276 uuid.toString(uuid_str);
1275 snprintf(filename,sizeof(filename),"%s.%s",gDirUtilp->getExpandedFilename(LL_PATH_CACHE,uuid_str).c_str(),LLAssetType::lookup(type)); /* Flawfinder: ignore */ 1277 snprintf(filename,sizeof(filename),"%s.%s",gDirUtilp->getExpandedFilename(LL_PATH_CACHE,uuid_str).c_str(),LLAssetType::lookup(type)); /* Flawfinder: ignore */
1276 1278
1277 FILE* fp = LLFile::fopen(filename, "wb"); /* Flawfinder: ignore */ 1279 FILE* fp = LLFile::fopen(filename, "wb"); /* Flawfinder: ignore */
1278 if (fp) 1280 if (fp)