Thank you very much, Diva for a patch to increase the

grid server reliability.
ThreadPoolClientBranch
Charles Krinke 2008-02-17 02:03:27 +00:00
parent 9e828ab168
commit df04345e3f
1 changed files with 24 additions and 14 deletions

View File

@ -680,14 +680,17 @@ namespace OpenSim.Grid.GridServer
/// </summary>
/// <param name="request"></param>
/// <param name="path"></param>
/// <param name="param"></param>
/// <param name="param">A string representing the sim's UUID</param>
/// <returns>Information about the sim in XML</returns>
public string RestGetSimMethod(string request, string path, string param)
{
string respstring = String.Empty;
RegionProfileData TheSim;
LLUUID UUID = new LLUUID(param);
LLUUID UUID;
if (LLUUID.TryParse(param, out UUID))
{
TheSim = getRegion(UUID);
if (!(TheSim == null))
@ -705,6 +708,13 @@ namespace OpenSim.Grid.GridServer
respstring += "</sim>";
respstring += "</Root>";
}
}
else
{
respstring = "<Root>";
respstring += "<error>Param must be a UUID</error>";
respstring += "</Root>";
}
return respstring;
}