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; ulong handle = region.RegionHandle & HANDLEMASK;
if(storage != null) if(storage != null)
storage.Remove(handle); storage.Remove(handle);
removeFromInner(region);
if(expires != null) if(expires != null)
{ {
expires.Remove(handle); expires.Remove(handle);
@ -479,7 +480,14 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
handle &= HANDLEMASK; handle &= HANDLEMASK;
if(storage.ContainsKey(handle)) if(storage.ContainsKey(handle))
return storage[handle]; return storage[handle];
if(!innerHandles.ContainsKey(handle))
return null;
ulong rhandle = innerHandles[handle];
if(storage.ContainsKey(rhandle))
return storage[rhandle];
return null; return null;
} }