diff options
Diffstat (limited to 'OpenSim/Addons/Groups/RemoteConnectorCacheWrapper.cs')
-rw-r--r-- | OpenSim/Addons/Groups/RemoteConnectorCacheWrapper.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Addons/Groups/RemoteConnectorCacheWrapper.cs b/OpenSim/Addons/Groups/RemoteConnectorCacheWrapper.cs index f789626..e7d38c2 100644 --- a/OpenSim/Addons/Groups/RemoteConnectorCacheWrapper.cs +++ b/OpenSim/Addons/Groups/RemoteConnectorCacheWrapper.cs | |||
@@ -393,7 +393,7 @@ namespace OpenSim.Groups | |||
393 | } | 393 | } |
394 | } | 394 | } |
395 | 395 | ||
396 | public bool AddGroupRole(UUID roleID, string description, string name, ulong powers, string title, BooleanDelegate d) | 396 | public bool AddGroupRole(UUID groupID, UUID roleID, string description, string name, ulong powers, string title, BooleanDelegate d) |
397 | { | 397 | { |
398 | if (d()) | 398 | if (d()) |
399 | { | 399 | { |
@@ -406,8 +406,15 @@ namespace OpenSim.Groups | |||
406 | role.Title = title; | 406 | role.Title = title; |
407 | 407 | ||
408 | lock (m_Cache) | 408 | lock (m_Cache) |
409 | { | ||
409 | m_Cache.AddOrUpdate("role-" + roleID.ToString(), role, GROUPS_CACHE_TIMEOUT); | 410 | m_Cache.AddOrUpdate("role-" + roleID.ToString(), role, GROUPS_CACHE_TIMEOUT); |
410 | 411 | ||
412 | // also remove this list | ||
413 | if (m_Cache.Contains("roles-" + groupID.ToString())) | ||
414 | m_Cache.Remove("roles-" + groupID.ToString()); | ||
415 | |||
416 | } | ||
417 | |||
411 | return true; | 418 | return true; |
412 | } | 419 | } |
413 | 420 | ||