diff options
author | James Cook <james@lindenlab.com> | 2010-04-26 14:19:58 -0700 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2010-04-26 14:19:58 -0700 |
commit | e4f2887983dc6f473c6657b8b653437557c638fa (patch) | |
tree | cc74079f6a530e94215d07221b643b8fac3a7c6d /indra/llmessage | |
parent | 7c913b91163cb2cb9e1829b523d1678a74230e93 (diff) |
Don't save dummy records (from 503 errors) to disk cache
Diffstat (limited to 'indra/llmessage')
-rw-r--r-- | indra/llmessage/llavatarnamecache.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/llmessage/llavatarnamecache.cpp b/indra/llmessage/llavatarnamecache.cpp index eabd311bb0..5acecd1dcb 100644 --- a/indra/llmessage/llavatarnamecache.cpp +++ b/indra/llmessage/llavatarnamecache.cpp @@ -184,6 +184,7 @@ public: av_name.mSLID = DUMMY_NAME; av_name.mDisplayName = DUMMY_NAME; av_name.mIsDisplayNameDefault = false; + av_name.mIsDummy = true; av_name.mExpires = retry_timestamp; // Add dummy records for all agent IDs in this request @@ -358,8 +359,11 @@ void LLAvatarNameCache::exportFile(std::ostream& ostr) { const LLUUID& agent_id = it->first; const LLAvatarName& av_name = it->second; - // key must be a string - agents[agent_id.asString()] = av_name.asLLSD(); + if (!av_name.mIsDummy) + { + // key must be a string + agents[agent_id.asString()] = av_name.asLLSD(); + } } LLSD data; data["agents"] = agents; |