From 654aead8a1014d095331986a32690920b6d8464a Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Wed, 9 Aug 2017 18:19:28 +0300 Subject: SL-684 Improve cache version guard --- indra/newview/llvocache.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra/newview/llvocache.h') diff --git a/indra/newview/llvocache.h b/indra/newview/llvocache.h index 7aabde1b2d..230a81fb76 100644 --- a/indra/newview/llvocache.h +++ b/indra/newview/llvocache.h @@ -237,9 +237,10 @@ private: struct HeaderMetaInfo { - HeaderMetaInfo() : mVersion(0){} + HeaderMetaInfo() : mVersion(0), mAddressSize(0) {} U32 mVersion; + U32 mAddressSize; }; struct header_entry_less -- cgit v1.2.3 From cbd4c0196fc32f94c6f9a41d161b65f4609985d4 Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Thu, 17 Aug 2017 15:32:01 +0300 Subject: SL-683 Instrument viewer cache --- indra/newview/llvocache.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/newview/llvocache.h') diff --git a/indra/newview/llvocache.h b/indra/newview/llvocache.h index 230a81fb76..7d450c5231 100644 --- a/indra/newview/llvocache.h +++ b/indra/newview/llvocache.h @@ -268,6 +268,9 @@ public: void setReadOnly(bool read_only) {mReadOnly = read_only;} + U32 getCacheEntries() { return mNumEntries; } + U32 getCacheEntriesMax() { return mCacheSize; } + private: void setDirNames(ELLPath location); // determine the cache filename for the region from the region handle -- cgit v1.2.3