mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Add <expire> tag to data snapshot to give the search server an idea
of when to query this node again
This commit is contained in:
@@ -240,11 +240,17 @@ namespace OpenSim.Region.DataSnapshot
|
||||
XmlDocument requestedSnap = new XmlDocument();
|
||||
requestedSnap.AppendChild(requestedSnap.CreateXmlDeclaration("1.0", null, null));
|
||||
requestedSnap.AppendChild(requestedSnap.CreateWhitespace("\r\n"));
|
||||
|
||||
XmlNode regiondata = requestedSnap.CreateNode(XmlNodeType.Element, "regiondata", "");
|
||||
try
|
||||
{
|
||||
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)
|
||||
{
|
||||
regiondata.AppendChild(m_snapStore.GetScene(scene, requestedSnap));
|
||||
|
||||
Reference in New Issue
Block a user