diff options
author | leyla_linden <none@none> | 2011-01-06 16:43:57 -0800 |
---|---|---|
committer | leyla_linden <none@none> | 2011-01-06 16:43:57 -0800 |
commit | 523722652259d37841be2ad4ad283df4887ad372 (patch) | |
tree | 3872f4235183254667bb0452ff5faf6554c7c69c /indra/newview/llvocache.h | |
parent | f243f7e550b9dadd26d119bfeb4b215aa809997c (diff) | |
parent | d8cf705d0189ec34b1202ee50ea3e5991cf4c90f (diff) |
Merge
Diffstat (limited to 'indra/newview/llvocache.h')
-rw-r--r-- | indra/newview/llvocache.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/llvocache.h b/indra/newview/llvocache.h index ed2bc8bafe..014112718e 100644 --- a/indra/newview/llvocache.h +++ b/indra/newview/llvocache.h @@ -95,10 +95,13 @@ private: { bool operator()(const HeaderEntryInfo* lhs, const HeaderEntryInfo* rhs) const { - return lhs->mTime < rhs->mTime; // older entry in front of queue (set) + if (lhs->mTime == rhs->mTime) + { + return lhs->mHandle < rhs->mHandle; + } + return lhs->mTime < rhs->mTime; // older entry in front } }; - typedef std::set<HeaderEntryInfo*, header_entry_less> header_entry_queue_t; typedef std::map<U64, HeaderEntryInfo*> handle_entry_map_t; private: LLVOCache() ; @@ -134,11 +137,9 @@ private: BOOL mReadOnly ; HeaderMetaInfo mMetaInfo; U32 mCacheSize; - U32 mNumEntries; std::string mHeaderFileName ; std::string mObjectCacheDirName; LLVolatileAPRPool* mLocalAPRFilePoolp ; - header_entry_queue_t mHeaderEntryQueue; handle_entry_map_t mHandleEntryMap; static LLVOCache* sInstance ; |