aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-03-26 17:25:12 +0000
committerJustin Clarke Casey2009-03-26 17:25:12 +0000
commit93b26f89336d83f2eab43ced0081d60b1acf2d7f (patch)
treec729d6730fc639d0df44f3613bc477f2d99da00c /OpenSim/Region/CoreModules
parentSmall refactoring in Caps, no functional changes. (diff)
downloadopensim-SC-93b26f89336d83f2eab43ced0081d60b1acf2d7f.zip
opensim-SC-93b26f89336d83f2eab43ced0081d60b1acf2d7f.tar.gz
opensim-SC-93b26f89336d83f2eab43ced0081d60b1acf2d7f.tar.bz2
opensim-SC-93b26f89336d83f2eab43ced0081d60b1acf2d7f.tar.xz
* iars: Serialize information about item creators to archive
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs
index 208c49e..5a7d929 100644
--- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs
@@ -35,6 +35,7 @@ using log4net;
35using OpenMetaverse; 35using OpenMetaverse;
36using OpenSim.Framework; 36using OpenSim.Framework;
37using OpenSim.Framework.Serialization; 37using OpenSim.Framework.Serialization;
38using OpenSim.Framework.Serialization.External;
38using OpenSim.Framework.Communications; 39using OpenSim.Framework.Communications;
39using OpenSim.Framework.Communications.Cache; 40using OpenSim.Framework.Communications.Cache;
40using OpenSim.Region.CoreModules.World.Archiver; 41using OpenSim.Region.CoreModules.World.Archiver;
@@ -346,10 +347,15 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
346 = m_module.CommsManager.UserProfileCacheService.GetUserDetails(creatorId); 347 = m_module.CommsManager.UserProfileCacheService.GetUserDetails(creatorId);
347 348
348 if (creator != null) 349 if (creator != null)
349 m_log.DebugFormat( 350 {
350 "[INVENTORY ARCHIVER]: Got creator {0} {1}", creator.UserProfile.Name, creator.UserProfile.ID); 351 m_archive.WriteFile(
352 ArchiveConstants.USERS_PATH + creator.UserProfile.Name + ".xml",
353 UserProfileSerializer.Serialize(creator.UserProfile));
354 }
351 else 355 else
356 {
352 m_log.WarnFormat("[INVENTORY ARCHIVER]: Failed to get creator profile for {0}", creatorId); 357 m_log.WarnFormat("[INVENTORY ARCHIVER]: Failed to get creator profile for {0}", creatorId);
358 }
353 } 359 }
354 } 360 }
355 } 361 }