aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerassetstorage.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llviewerassetstorage.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llviewerassetstorage.cpp')
-rw-r--r--linden/indra/newview/llviewerassetstorage.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/newview/llviewerassetstorage.cpp b/linden/indra/newview/llviewerassetstorage.cpp
index ac4003b..03e5b40 100644
--- a/linden/indra/newview/llviewerassetstorage.cpp
+++ b/linden/indra/newview/llviewerassetstorage.cpp
@@ -88,7 +88,7 @@ void LLViewerAssetStorage::storeAssetData(
88 // This can happen if there's a bug in our code or if the VFS has been corrupted. 88 // This can happen if there's a bug in our code or if the VFS has been corrupted.
89 llwarns << "LLViewerAssetStorage::storeAssetData() Data _should_ already be in the VFS, but it's not! " << asset_id << llendl; 89 llwarns << "LLViewerAssetStorage::storeAssetData() Data _should_ already be in the VFS, but it's not! " << asset_id << llendl;
90 // LLAssetStorage metric: Zero size VFS 90 // LLAssetStorage metric: Zero size VFS
91 reportMetric( asset_id, asset_type, NULL, LLUUID::null, 0, MR_ZERO_SIZE, __FILE__, __LINE__, "The file didn't exist or was zero length (VFS - can't tell which)" ); 91 reportMetric( asset_id, asset_type, LLStringUtil::null, LLUUID::null, 0, MR_ZERO_SIZE, __FILE__, __LINE__, "The file didn't exist or was zero length (VFS - can't tell which)" );
92 92
93 delete req; 93 delete req;
94 if (callback) 94 if (callback)
@@ -102,7 +102,7 @@ void LLViewerAssetStorage::storeAssetData(
102 // LLAssetStorage metric: Successful Request 102 // LLAssetStorage metric: Successful Request
103 S32 size = mVFS->getSize(asset_id, asset_type); 103 S32 size = mVFS->getSize(asset_id, asset_type);
104 const char *message = "Added to upload queue"; 104 const char *message = "Added to upload queue";
105 reportMetric( asset_id, asset_type, NULL, LLUUID::null, size, MR_OKAY, __FILE__, __LINE__, message ); 105 reportMetric( asset_id, asset_type, LLStringUtil::null, LLUUID::null, size, MR_OKAY, __FILE__, __LINE__, message );
106 106
107 if(is_priority) 107 if(is_priority)
108 { 108 {
@@ -130,7 +130,7 @@ void LLViewerAssetStorage::storeAssetData(
130 llwarns << "Probable corruption in VFS file, aborting store asset data" << llendl; 130 llwarns << "Probable corruption in VFS file, aborting store asset data" << llendl;
131 131
132 // LLAssetStorage metric: VFS corrupt - bogus size 132 // LLAssetStorage metric: VFS corrupt - bogus size
133 reportMetric( asset_id, asset_type, NULL, LLUUID::null, asset_size, MR_VFS_CORRUPTION, __FILE__, __LINE__, "VFS corruption" ); 133 reportMetric( asset_id, asset_type, LLStringUtil::null, LLUUID::null, asset_size, MR_VFS_CORRUPTION, __FILE__, __LINE__, "VFS corruption" );
134 134
135 if (callback) 135 if (callback)
136 { 136 {
@@ -158,7 +158,7 @@ void LLViewerAssetStorage::storeAssetData(
158 { 158 {
159 llwarns << "AssetStorage: attempt to upload non-existent vfile " << asset_id << ":" << LLAssetType::lookup(asset_type) << llendl; 159 llwarns << "AssetStorage: attempt to upload non-existent vfile " << asset_id << ":" << LLAssetType::lookup(asset_type) << llendl;
160 // LLAssetStorage metric: Zero size VFS 160 // LLAssetStorage metric: Zero size VFS
161 reportMetric( asset_id, asset_type, NULL, LLUUID::null, 0, MR_ZERO_SIZE, __FILE__, __LINE__, "The file didn't exist or was zero length (VFS - can't tell which)" ); 161 reportMetric( asset_id, asset_type, LLStringUtil::null, LLUUID::null, 0, MR_ZERO_SIZE, __FILE__, __LINE__, "The file didn't exist or was zero length (VFS - can't tell which)" );
162 if (callback) 162 if (callback)
163 { 163 {
164 callback(asset_id, user_data, LL_ERR_ASSET_REQUEST_NONEXISTENT_FILE, LL_EXSTAT_NONEXISTENT_FILE); 164 callback(asset_id, user_data, LL_ERR_ASSET_REQUEST_NONEXISTENT_FILE, LL_EXSTAT_NONEXISTENT_FILE);
@@ -169,7 +169,7 @@ void LLViewerAssetStorage::storeAssetData(
169 { 169 {
170 llwarns << "Attempt to move asset store request upstream w/o valid upstream provider" << llendl; 170 llwarns << "Attempt to move asset store request upstream w/o valid upstream provider" << llendl;
171 // LLAssetStorage metric: Upstream provider dead 171 // LLAssetStorage metric: Upstream provider dead
172 reportMetric( asset_id, asset_type, NULL, LLUUID::null, 0, MR_NO_UPSTREAM, __FILE__, __LINE__, "No upstream provider" ); 172 reportMetric( asset_id, asset_type, LLStringUtil::null, LLUUID::null, 0, MR_NO_UPSTREAM, __FILE__, __LINE__, "No upstream provider" );
173 if (callback) 173 if (callback)
174 { 174 {
175 callback(asset_id, user_data, LL_ERR_CIRCUIT_GONE, LL_EXSTAT_NO_UPSTREAM); 175 callback(asset_id, user_data, LL_ERR_CIRCUIT_GONE, LL_EXSTAT_NO_UPSTREAM);
@@ -178,7 +178,7 @@ void LLViewerAssetStorage::storeAssetData(
178} 178}
179 179
180void LLViewerAssetStorage::storeAssetData( 180void LLViewerAssetStorage::storeAssetData(
181 const char* filename, 181 const std::string& filename,
182 const LLTransactionID& tid, 182 const LLTransactionID& tid,
183 LLAssetType::EType asset_type, 183 LLAssetType::EType asset_type,
184 LLStoreAssetCallback callback, 184 LLStoreAssetCallback callback,
@@ -188,10 +188,10 @@ void LLViewerAssetStorage::storeAssetData(
188 bool user_waiting, 188 bool user_waiting,
189 F64 timeout) 189 F64 timeout)
190{ 190{
191if(!filename) 191 if(filename.empty())
192 { 192 {
193 // LLAssetStorage metric: no filename 193 // LLAssetStorage metric: no filename
194 reportMetric( LLUUID::null, asset_type, "", LLUUID::null, 0, MR_VFS_CORRUPTION, __FILE__, __LINE__, "Filename missing" ); 194 reportMetric( LLUUID::null, asset_type, LLStringUtil::null, LLUUID::null, 0, MR_VFS_CORRUPTION, __FILE__, __LINE__, "Filename missing" );
195 llerrs << "No filename specified" << llendl; 195 llerrs << "No filename specified" << llendl;
196 return; 196 return;
197 } 197 }