summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2010-02-16 10:40:53 -0800
committerJames Cook <james@lindenlab.com>2010-02-16 10:40:53 -0800
commitb34225a1918026ed8557a19cacf5925d107c134a (patch)
tree30d0057c82d110fc56b0d82b8e2f7c1f079578f6 /indra
parentc16591c046fa76fc5d13387efa3bcaec3422e593 (diff)
Fix server to use updated LLCacheName API.
Fixed callback signatures. Added LLCacheName::getDefaultLastName() to return "Resident" Reviewed with Huseby
Diffstat (limited to 'indra')
-rw-r--r--indra/llmessage/llcachename.cpp6
-rw-r--r--indra/llmessage/llcachename.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/indra/llmessage/llcachename.cpp b/indra/llmessage/llcachename.cpp
index b94788bd0c..90c1dedd10 100644
--- a/indra/llmessage/llcachename.cpp
+++ b/indra/llmessage/llcachename.cpp
@@ -672,6 +672,12 @@ std::string LLCacheName::getDefaultName()
return sCacheName["waiting"];
}
+//static
+std::string LLCacheName::getDefaultLastName()
+{
+ return "Resident";
+}
+
void LLCacheName::Impl::processPendingAsks()
{
LLMemType mt_ppa(LLMemType::MTYPE_CACHE_PROCESS_PENDING_ASKS);
diff --git a/indra/llmessage/llcachename.h b/indra/llmessage/llcachename.h
index 8d8e172c08..59ad03cfcc 100644
--- a/indra/llmessage/llcachename.h
+++ b/indra/llmessage/llcachename.h
@@ -113,6 +113,11 @@ public:
void dumpStats(); // Dumps the sizes of the cache and associated queues.
static std::string getDefaultName();
+
+ // Returns "Resident", the default last name for SLID-based accounts
+ // that have no last name.
+ static std::string getDefaultLastName();
+
static void localizeCacheName(std::string key, std::string value);
static std::map<std::string, std::string> sCacheName;
private: