let get by handle also search on inner lookup table

LSLKeyTest
UbitUmarov 2016-08-04 03:16:29 +01:00
parent 721d5ed145
commit 1b16ad9088
1 changed files with 8 additions and 0 deletions

View File

@ -401,6 +401,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
ulong handle = region.RegionHandle & HANDLEMASK;
if(storage != null)
storage.Remove(handle);
removeFromInner(region);
if(expires != null)
{
expires.Remove(handle);
@ -480,6 +481,13 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
if(storage.ContainsKey(handle))
return storage[handle];
if(!innerHandles.ContainsKey(handle))
return null;
ulong rhandle = innerHandles[handle];
if(storage.ContainsKey(rhandle))
return storage[rhandle];
return null;
}