mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
!= UUID.Zero is slow
This commit is contained in:
@@ -87,7 +87,7 @@ namespace OpenSim.Groups
|
||||
if (group == null)
|
||||
return UUID.Zero;
|
||||
|
||||
if (group.GroupID != UUID.Zero)
|
||||
if (!group.GroupID.IsZero())
|
||||
{
|
||||
m_Cache.AddOrUpdate("group-" + group.GroupID.ToString(), group, GROUPS_CACHE_TIMEOUT);
|
||||
m_Cache.Remove("memberships-" + RequestingAgentID.ToString());
|
||||
@@ -101,7 +101,7 @@ namespace OpenSim.Groups
|
||||
//ExtendedGroupRecord group = m_GroupsService.UpdateGroup(RequestingAgentID, groupID, charter, showInList, insigniaID, membershipFee, openEnrollment, allowPublish, maturePublish);
|
||||
ExtendedGroupRecord group = d();
|
||||
|
||||
if (group != null && group.GroupID != UUID.Zero)
|
||||
if (group != null && !group.GroupID.IsZero())
|
||||
m_Cache.AddOrUpdate("group-" + group.GroupID.ToString(), group, GROUPS_CACHE_TIMEOUT);
|
||||
|
||||
return true;
|
||||
@@ -115,10 +115,10 @@ namespace OpenSim.Groups
|
||||
object group = null;
|
||||
bool firstCall = false;
|
||||
string cacheKey = "group-";
|
||||
if (GroupID != UUID.Zero)
|
||||
cacheKey += GroupID.ToString();
|
||||
else
|
||||
if (GroupID.IsZero())
|
||||
cacheKey += GroupName;
|
||||
else
|
||||
cacheKey += GroupID.ToString();
|
||||
|
||||
//m_log.DebugFormat("[XXX]: GetGroupRecord {0}", cacheKey);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user