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:
Mike Dickson 2024-09-20 21:25:46 -04:00
parent cfd4742a29
commit 39aaed76b7
2 changed files with 10 additions and 3 deletions

View file

@ -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
{

View file

@ -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");
}
}
}