Add <expire> tag to data snapshot to give the search server an idea
of when to query this node again0.6.0-stable
parent
4d8544dada
commit
f8f1bc6199
|
@ -240,11 +240,17 @@ namespace OpenSim.Region.DataSnapshot
|
||||||
XmlDocument requestedSnap = new XmlDocument();
|
XmlDocument requestedSnap = new XmlDocument();
|
||||||
requestedSnap.AppendChild(requestedSnap.CreateXmlDeclaration("1.0", null, null));
|
requestedSnap.AppendChild(requestedSnap.CreateXmlDeclaration("1.0", null, null));
|
||||||
requestedSnap.AppendChild(requestedSnap.CreateWhitespace("\r\n"));
|
requestedSnap.AppendChild(requestedSnap.CreateWhitespace("\r\n"));
|
||||||
|
|
||||||
XmlNode regiondata = requestedSnap.CreateNode(XmlNodeType.Element, "regiondata", "");
|
XmlNode regiondata = requestedSnap.CreateNode(XmlNodeType.Element, "regiondata", "");
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (regionName == null || regionName == "")
|
if (regionName == null || regionName == "")
|
||||||
{
|
{
|
||||||
|
XmlNode timerblock = requestedSnap.CreateNode(XmlNodeType.Element, "expire", "");
|
||||||
|
timerblock.InnerText = m_period.ToString();
|
||||||
|
regiondata.AppendChild(timerblock);
|
||||||
|
|
||||||
|
regiondata.AppendChild(requestedSnap.CreateWhitespace("\r\n"));
|
||||||
foreach (Scene scene in m_scenes)
|
foreach (Scene scene in m_scenes)
|
||||||
{
|
{
|
||||||
regiondata.AppendChild(m_snapStore.GetScene(scene, requestedSnap));
|
regiondata.AppendChild(m_snapStore.GetScene(scene, requestedSnap));
|
||||||
|
|
Loading…
Reference in New Issue