summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerassetstorage.cpp
diff options
context:
space:
mode:
authorCallum Prentice <callum@gmail.com>2020-09-16 21:12:53 -0700
committerCallum Prentice <callum@gmail.com>2020-09-16 21:12:53 -0700
commit2e6f5164116e084fe35f952180c3f7092ad8350f (patch)
treeefb02e626773fd54d75cc73f0ebfbca862057b24 /indra/newview/llviewerassetstorage.cpp
parent3fc07dea01795b31c37dcd093ec73d190a1e188a (diff)
Renamed the references to LLVFile and llvfile.* source code plus cmake scripts to use a different name - lldiskcache - since that more closely resembles what it is (or will be) now that the VFA is no more
Diffstat (limited to 'indra/newview/llviewerassetstorage.cpp')
-rw-r--r--indra/newview/llviewerassetstorage.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/indra/newview/llviewerassetstorage.cpp b/indra/newview/llviewerassetstorage.cpp
index b4e1e2633b..e9c8909fe4 100644
--- a/indra/newview/llviewerassetstorage.cpp
+++ b/indra/newview/llviewerassetstorage.cpp
@@ -28,7 +28,7 @@
#include "llviewerassetstorage.h"
-#include "llvfile.h"
+#include "lldiskcache.h"
#include "message.h"
#include "llagent.h"
@@ -151,13 +151,13 @@ void LLViewerAssetStorage::storeAssetData(
if (mUpstreamHost.isOk())
{
- if (LLVFile::getExists(asset_id, asset_type))
+ if (LLDiskCache::getExists(asset_id, asset_type))
{
// Pack data into this packet if we can fit it.
U8 buffer[MTUBYTES];
buffer[0] = 0;
- LLVFile vfile(asset_id, asset_type, LLVFile::READ);
+ LLDiskCache vfile(asset_id, asset_type, LLDiskCache::READ);
S32 asset_size = vfile.getSize();
LLAssetRequest *req = new LLAssetRequest(asset_id, asset_type);
@@ -179,7 +179,7 @@ void LLViewerAssetStorage::storeAssetData(
else
{
// LLAssetStorage metric: Successful Request
- S32 size = LLVFile::getFileSize(asset_id, asset_type);
+ S32 size = LLDiskCache::getFileSize(asset_id, asset_type);
const char *message = "Added to upload queue";
reportMetric( asset_id, asset_type, LLStringUtil::null, LLUUID::null, size, MR_OKAY, __FILE__, __LINE__, message );
@@ -290,7 +290,7 @@ void LLViewerAssetStorage::storeAssetData(
legacy->mUpCallback = callback;
legacy->mUserData = user_data;
- LLVFile file(asset_id, asset_type, LLVFile::WRITE);
+ LLDiskCache file(asset_id, asset_type, LLDiskCache::WRITE);
file.setMaxSize(size);
@@ -526,7 +526,7 @@ void LLViewerAssetStorage::assetRequestCoro(
// case.
LLUUID temp_id;
temp_id.generate();
- LLVFile vf(temp_id, atype, LLVFile::WRITE);
+ LLDiskCache vf(temp_id, atype, LLDiskCache::WRITE);
vf.setMaxSize(size);
req->mBytesFetched = size;
if (!vf.write(raw.data(),size))