From b34225a1918026ed8557a19cacf5925d107c134a Mon Sep 17 00:00:00 2001 From: James Cook Date: Tue, 16 Feb 2010 10:40:53 -0800 Subject: Fix server to use updated LLCacheName API. Fixed callback signatures. Added LLCacheName::getDefaultLastName() to return "Resident" Reviewed with Huseby --- indra/llmessage/llcachename.cpp | 6 ++++++ indra/llmessage/llcachename.h | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'indra/llmessage') 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 sCacheName; private: -- cgit v1.2.3