[opensource-dev] Question about speed of name cache query

Oz Linden (Scott Lawrence) oz at lindenlab.com
Wed Oct 26 10:20:13 PDT 2011


On 2011-10-25 9:23, Jonathan Welch wrote:
> For my solution to Storm-1653 (Group notices sent by muted residents
> are still displayed) I have to call gCacheName->buildLegacyName to get
> the AgentID associated with a legacy name.
>
> It looks like this code may operate asynchronously if there is a cache
> miss.  In my testing I was always able to get an AgentID back, even
> with a cache miss, but my tests were not being done in a lagged out
> region.
>
> Would someone with knowledge of the name cache tell me if it is
> possible for this routine to not return an AgentID; I'd like to
> comment my code change properly.
>

I'm pretty sure that buildLegacyName will always return a useful name; 
the asynchronous path is only for fetching a Display Name.



More information about the opensource-dev mailing list