mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Change the error messages on region region registration. This changes URM
and region. The non-error case should be compatible, so no version bump. Untested.
This commit is contained in:
@@ -200,7 +200,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
|
||||
#region IGridService
|
||||
|
||||
public bool RegisterRegion(UUID scopeID, GridRegion regionInfo)
|
||||
public string RegisterRegion(UUID scopeID, GridRegion regionInfo)
|
||||
{
|
||||
// Region doesn't exist here. Trying to link remote region
|
||||
if (regionInfo.RegionID.Equals(UUID.Zero))
|
||||
@@ -215,12 +215,12 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
|
||||
// Try get the map image
|
||||
m_HypergridServiceConnector.GetMapImage(regionInfo);
|
||||
return true;
|
||||
return String.Empty;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.Info("[HGrid]: No such region " + regionInfo.ExternalHostName + ":" + regionInfo.HttpPort + "(" + regionInfo.InternalEndPoint.Port + ")");
|
||||
return false;
|
||||
return "No such region";
|
||||
}
|
||||
// Note that these remote regions aren't registered in localBackend, so return null, no local listeners
|
||||
}
|
||||
@@ -469,7 +469,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
}
|
||||
|
||||
// Finally, link it
|
||||
if (!RegisterRegion(UUID.Zero, regInfo))
|
||||
if (RegisterRegion(UUID.Zero, regInfo) != String.Empty)
|
||||
{
|
||||
m_log.Warn("[HGrid]: Unable to link region");
|
||||
return false;
|
||||
|
||||
@@ -169,7 +169,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
|
||||
#region IGridService
|
||||
|
||||
public bool RegisterRegion(UUID scopeID, GridRegion regionInfo)
|
||||
public string RegisterRegion(UUID scopeID, GridRegion regionInfo)
|
||||
{
|
||||
return m_GridService.RegisterRegion(scopeID, regionInfo);
|
||||
}
|
||||
|
||||
@@ -135,12 +135,14 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||
|
||||
#region IGridService
|
||||
|
||||
public override bool RegisterRegion(UUID scopeID, GridRegion regionInfo)
|
||||
public override string RegisterRegion(UUID scopeID, GridRegion regionInfo)
|
||||
{
|
||||
if (m_LocalGridService.RegisterRegion(scopeID, regionInfo))
|
||||
string msg = m_LocalGridService.RegisterRegion(scopeID, regionInfo);
|
||||
|
||||
if (msg == String.Empty)
|
||||
return base.RegisterRegion(scopeID, regionInfo);
|
||||
|
||||
return false;
|
||||
return msg;
|
||||
}
|
||||
|
||||
public override bool DeregisterRegion(UUID regionID)
|
||||
|
||||
Reference in New Issue
Block a user