diff options
author | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-08-13 20:19:46 +0300 |
---|---|---|
committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2019-08-13 20:19:46 +0300 |
commit | 24a0601a50f81b8f1a21c2c64c118702dd93f645 (patch) | |
tree | 5761d730f7f38652f6ea1c39cf94a1a6ea29686a /indra/newview/llvocache.cpp | |
parent | 1233842012a257b7eb49eab354bb945593c974ed (diff) |
DRTVWR-493 Reworked a number of inits
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rw-r--r-- | indra/newview/llvocache.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index fb28d9bdb5..0e6511f6b5 100644 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -1045,14 +1045,15 @@ const char* object_cache_dirname = "objectcache"; const char* header_filename = "object.cache"; -LLVOCache::LLVOCache(): +LLVOCache::LLVOCache(ELLPath location, U32 size, U32 cache_version, bool read_only) : mInitialized(false), - mReadOnly(true), + mReadOnly(read_only), mNumEntries(0), mCacheSize(1) { mEnabled = gSavedSettings.getBOOL("ObjectCacheEnabled"); mLocalAPRFilePoolp = new LLVolatileAPRPool() ; + initCache(location, size, cache_version); } LLVOCache::~LLVOCache() |