diff options
author | Justin Clarke Casey | 2009-03-26 17:25:12 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-03-26 17:25:12 +0000 |
commit | 93b26f89336d83f2eab43ced0081d60b1acf2d7f (patch) | |
tree | c729d6730fc639d0df44f3613bc477f2d99da00c /OpenSim/Region | |
parent | Small refactoring in Caps, no functional changes. (diff) | |
download | opensim-SC_OLD-93b26f89336d83f2eab43ced0081d60b1acf2d7f.zip opensim-SC_OLD-93b26f89336d83f2eab43ced0081d60b1acf2d7f.tar.gz opensim-SC_OLD-93b26f89336d83f2eab43ced0081d60b1acf2d7f.tar.bz2 opensim-SC_OLD-93b26f89336d83f2eab43ced0081d60b1acf2d7f.tar.xz |
* iars: Serialize information about item creators to archive
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | 10 |
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; | |||
35 | using OpenMetaverse; | 35 | using OpenMetaverse; |
36 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
37 | using OpenSim.Framework.Serialization; | 37 | using OpenSim.Framework.Serialization; |
38 | using OpenSim.Framework.Serialization.External; | ||
38 | using OpenSim.Framework.Communications; | 39 | using OpenSim.Framework.Communications; |
39 | using OpenSim.Framework.Communications.Cache; | 40 | using OpenSim.Framework.Communications.Cache; |
40 | using OpenSim.Region.CoreModules.World.Archiver; | 41 | using 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 | } |