aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-05-21 20:43:11 +0100
committerJustin Clark-Casey (justincc)2010-05-21 20:43:11 +0100
commit721c1085da22229f4d40529dd2738a2cf62a91b7 (patch)
treecae1c731191972cd0bf672bb2e42e312d4239a83 /OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs
parentminor: refactor CreateAsset to eliminate dupe code (diff)
downloadopensim-SC_OLD-721c1085da22229f4d40529dd2738a2cf62a91b7.zip
opensim-SC_OLD-721c1085da22229f4d40529dd2738a2cf62a91b7.tar.gz
opensim-SC_OLD-721c1085da22229f4d40529dd2738a2cf62a91b7.tar.bz2
opensim-SC_OLD-721c1085da22229f4d40529dd2738a2cf62a91b7.tar.xz
make oar object filename/pathname creation a helper method
reused in both tests and oar code reduction in checking is outweighed by greater test clarity
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs11
1 files changed, 1 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs
index 9fc6ec4..586d98e 100644
--- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs
+++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestExecution.cs
@@ -145,17 +145,8 @@ namespace OpenSim.Region.CoreModules.World.Archiver
145 { 145 {
146 //m_log.DebugFormat("[ARCHIVER]: Saving {0} {1}, {2}", entity.Name, entity.UUID, entity.GetType()); 146 //m_log.DebugFormat("[ARCHIVER]: Saving {0} {1}, {2}", entity.Name, entity.UUID, entity.GetType());
147 147
148 Vector3 position = sceneObject.AbsolutePosition;
149
150 string serializedObject = m_serialiser.SerializeGroupToXml2(sceneObject); 148 string serializedObject = m_serialiser.SerializeGroupToXml2(sceneObject);
151 string filename 149 m_archiveWriter.WriteFile(ArchiveHelpers.CreateObjectPath(sceneObject), serializedObject);
152 = string.Format(
153 "{0}{1}_{2:000}-{3:000}-{4:000}__{5}.xml",
154 ArchiveConstants.OBJECTS_PATH, sceneObject.Name,
155 Math.Round(position.X), Math.Round(position.Y), Math.Round(position.Z),
156 sceneObject.UUID);
157
158 m_archiveWriter.WriteFile(filename, serializedObject);
159 } 150 }
160 151
161 m_log.InfoFormat("[ARCHIVER]: Added scene objects to archive."); 152 m_log.InfoFormat("[ARCHIVER]: Added scene objects to archive.");