diff options
author | Justin Clarke Casey | 2008-06-21 19:56:19 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-06-21 19:56:19 +0000 |
commit | b290ce405f01ae4b52ba5d5ec1661a2ae44ba2d6 (patch) | |
tree | bbc2b33cc84ba305709e325e580d64a5e07798ff /OpenSim/Region/Environment/Modules/World/Archiver | |
parent | * minor: start saving current prims xml to an objects/ directory in the archive (diff) | |
download | opensim-SC-b290ce405f01ae4b52ba5d5ec1661a2ae44ba2d6.zip opensim-SC-b290ce405f01ae4b52ba5d5ec1661a2ae44ba2d6.tar.gz opensim-SC-b290ce405f01ae4b52ba5d5ec1661a2ae44ba2d6.tar.bz2 opensim-SC-b290ce405f01ae4b52ba5d5ec1661a2ae44ba2d6.tar.xz |
* Remove a bug I created in r5171 where taking an object would terminate the client session
* change code to use an explicit state variable instead of using SOG.Name = null to signal deletion
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Archiver')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs index 6e53f28..d2b8018 100644 --- a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs +++ b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs | |||
@@ -31,6 +31,7 @@ using OpenSim.Region.Environment.Modules.World.Serialiser; | |||
31 | using System; | 31 | using System; |
32 | using System.IO; | 32 | using System.IO; |
33 | using System.Reflection; | 33 | using System.Reflection; |
34 | using System.Xml; | ||
34 | using libsecondlife; | 35 | using libsecondlife; |
35 | using log4net; | 36 | using log4net; |
36 | 37 | ||
@@ -101,6 +102,20 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver | |||
101 | m_log.InfoFormat("[ARCHIVER]: Loading prim data"); | 102 | m_log.InfoFormat("[ARCHIVER]: Loading prim data"); |
102 | 103 | ||
103 | IRegionSerialiser serialiser = m_scene.RequestModuleInterface<IRegionSerialiser>(); | 104 | IRegionSerialiser serialiser = m_scene.RequestModuleInterface<IRegionSerialiser>(); |
105 | |||
106 | // Temporary code to read each sog in the file separately, pending actually having these in separate files | ||
107 | // XmlTextReader xtr = new XmlTextReader(new StringReader(serializedPrims)); | ||
108 | // XmlDocument doc = new XmlDocument(); | ||
109 | // reader.WhitespaceHandling = WhitespaceHandling.None; | ||
110 | // doc.Load(xtr); | ||
111 | // xtr.Close(); | ||
112 | // XmlNode sceneNode = doc.FirstChild; | ||
113 | // | ||
114 | // foreach (XmlNode objectNode in sceneNode.ChildNodes) | ||
115 | // { | ||
116 | // CreatePrimFromXml2(m_scene, objectNode.OuterXml); | ||
117 | // } | ||
118 | |||
104 | serialiser.LoadPrimsFromXml2(m_scene, new StringReader(serializedPrims)); | 119 | serialiser.LoadPrimsFromXml2(m_scene, new StringReader(serializedPrims)); |
105 | } | 120 | } |
106 | } | 121 | } |