mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
Unpacking the mess with OtherRegionUp, so we can have a real cache of the neighbours in the grid service modules.
This commit is contained in:
@@ -121,7 +121,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Neighbour
|
||||
|
||||
#region INeighbourService
|
||||
|
||||
public bool HelloNeighbour(ulong regionHandle, RegionInfo thisRegion)
|
||||
public GridRegion HelloNeighbour(ulong regionHandle, RegionInfo thisRegion)
|
||||
{
|
||||
m_log.DebugFormat("[NEIGHBOUR IN CONNECTOR]: HelloNeighbour from {0}, to {1}. Count = {2}",
|
||||
thisRegion.RegionName, regionHandle, m_Scenes.Count);
|
||||
@@ -134,7 +134,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Neighbour
|
||||
}
|
||||
}
|
||||
m_log.DebugFormat("[NEIGHBOUR IN CONNECTOR]: region handle {0} not found", regionHandle);
|
||||
return false;
|
||||
return null;
|
||||
}
|
||||
|
||||
#endregion INeighbourService
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Neighbour
|
||||
|
||||
#region INeighbourService
|
||||
|
||||
public bool HelloNeighbour(ulong regionHandle, RegionInfo thisRegion)
|
||||
public GridRegion HelloNeighbour(ulong regionHandle, RegionInfo thisRegion)
|
||||
{
|
||||
m_log.DebugFormat("[NEIGHBOUR CONNECTOR]: HelloNeighbour from {0}, to {1}. Count = {2}",
|
||||
thisRegion.RegionName, regionHandle, m_Scenes.Count);
|
||||
@@ -132,7 +132,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Neighbour
|
||||
}
|
||||
}
|
||||
m_log.DebugFormat("[NEIGHBOUR CONNECTOR]: region handle {0} not found", regionHandle);
|
||||
return false;
|
||||
return null;
|
||||
}
|
||||
|
||||
#endregion INeighbourService
|
||||
|
||||
@@ -141,10 +141,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Neighbour
|
||||
|
||||
#region INeighbourService
|
||||
|
||||
public override bool HelloNeighbour(ulong regionHandle, RegionInfo thisRegion)
|
||||
public override GridRegion HelloNeighbour(ulong regionHandle, RegionInfo thisRegion)
|
||||
{
|
||||
if (m_LocalService.HelloNeighbour(regionHandle, thisRegion))
|
||||
return true;
|
||||
GridRegion region = m_LocalService.HelloNeighbour(regionHandle, thisRegion);
|
||||
if (region != null)
|
||||
return region;
|
||||
|
||||
return base.HelloNeighbour(regionHandle, thisRegion);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user