aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/DataSnapshot
diff options
context:
space:
mode:
authorMelanie Thielker2008-09-20 16:15:10 +0000
committerMelanie Thielker2008-09-20 16:15:10 +0000
commitf8f1bc6199b5a3db31be887cee40080c670f0d30 (patch)
tree615c008560d8a54540084df590c2f7118a222808 /OpenSim/Region/DataSnapshot
parentFix Mantis #2215: llGetNotecardLine() not detecting EOF under DNE (diff)
downloadopensim-SC_OLD-f8f1bc6199b5a3db31be887cee40080c670f0d30.zip
opensim-SC_OLD-f8f1bc6199b5a3db31be887cee40080c670f0d30.tar.gz
opensim-SC_OLD-f8f1bc6199b5a3db31be887cee40080c670f0d30.tar.bz2
opensim-SC_OLD-f8f1bc6199b5a3db31be887cee40080c670f0d30.tar.xz
Add <expire> tag to data snapshot to give the search server an idea
of when to query this node again
Diffstat (limited to 'OpenSim/Region/DataSnapshot')
-rw-r--r--OpenSim/Region/DataSnapshot/DataSnapshotManager.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
index 46c9b3c..586b665 100644
--- a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
+++ b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
@@ -240,11 +240,17 @@ namespace OpenSim.Region.DataSnapshot
240 XmlDocument requestedSnap = new XmlDocument(); 240 XmlDocument requestedSnap = new XmlDocument();
241 requestedSnap.AppendChild(requestedSnap.CreateXmlDeclaration("1.0", null, null)); 241 requestedSnap.AppendChild(requestedSnap.CreateXmlDeclaration("1.0", null, null));
242 requestedSnap.AppendChild(requestedSnap.CreateWhitespace("\r\n")); 242 requestedSnap.AppendChild(requestedSnap.CreateWhitespace("\r\n"));
243
243 XmlNode regiondata = requestedSnap.CreateNode(XmlNodeType.Element, "regiondata", ""); 244 XmlNode regiondata = requestedSnap.CreateNode(XmlNodeType.Element, "regiondata", "");
244 try 245 try
245 { 246 {
246 if (regionName == null || regionName == "") 247 if (regionName == null || regionName == "")
247 { 248 {
249 XmlNode timerblock = requestedSnap.CreateNode(XmlNodeType.Element, "expire", "");
250 timerblock.InnerText = m_period.ToString();
251 regiondata.AppendChild(timerblock);
252
253 regiondata.AppendChild(requestedSnap.CreateWhitespace("\r\n"));
248 foreach (Scene scene in m_scenes) 254 foreach (Scene scene in m_scenes)
249 { 255 {
250 regiondata.AppendChild(m_snapStore.GetScene(scene, requestedSnap)); 256 regiondata.AppendChild(m_snapStore.GetScene(scene, requestedSnap));