mirror of
https://github.com/OpenSim-NGC/OpenSim-Sasquatch.git
synced 2024-11-21 14:29:10 -07:00
Cache negative lookups for aliases when doing lookups so a missed entry doesnt hammer the alias connector. Log a message the first time we lookup an alias and its not found. Bump version number.
This commit is contained in:
parent
cfd4742a29
commit
39aaed76b7
2 changed files with 10 additions and 3 deletions
|
@ -39,7 +39,7 @@ namespace OpenSim
|
|||
{
|
||||
public const string VersionNumber = "0.9.3";
|
||||
public const string AssemblyVersionNumber = "0.9.3";
|
||||
public const string Release = "9026";
|
||||
public const string Release = "9030";
|
||||
|
||||
public static string Version
|
||||
{
|
||||
|
|
|
@ -1075,12 +1075,19 @@ namespace OpenSim.Region.CoreModules.World.Archiver
|
|||
|
||||
lock (m_userAliases)
|
||||
{
|
||||
// Have we seen this UUID before?
|
||||
if (m_userAliases.TryGetValue(aliasID, out aliasUser) is false)
|
||||
{
|
||||
// If not look it up and get result, null if it doesnt exist
|
||||
aliasUser = UserAliasService?.GetUserForAlias(aliasID);
|
||||
if (aliasUser is not null)
|
||||
|
||||
// Plug it into the cache
|
||||
m_userAliases[aliasID] = aliasUser;
|
||||
|
||||
// And since its the first time we've seen this and no alias exists print a warning
|
||||
if (aliasUser is null)
|
||||
{
|
||||
m_userAliases[aliasID] = aliasUser;
|
||||
m_log.Warn($"[ARCHIVEREADREQUEST] No alias found for User {aliasID} and not a local user");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue