diff options
author | Justin Clarke Casey | 2009-04-17 19:11:03 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-04-17 19:11:03 +0000 |
commit | bd1b478f2c89fc1696b9e8fc6c0deaa9581bd556 (patch) | |
tree | 43d93a3562aa3d47e2984fd873b728b9af02f108 /OpenSim/Region/CoreModules/Avatar | |
parent | * Use profile cache service for data snapshot (diff) | |
download | opensim-SC-bd1b478f2c89fc1696b9e8fc6c0deaa9581bd556.zip opensim-SC-bd1b478f2c89fc1696b9e8fc6c0deaa9581bd556.tar.gz opensim-SC-bd1b478f2c89fc1696b9e8fc6c0deaa9581bd556.tar.bz2 opensim-SC-bd1b478f2c89fc1696b9e8fc6c0deaa9581bd556.tar.xz |
* Change inventory archiver module to use profile cache
* Clean up some log messages
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs index f8a5d9f..c5699c0 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs | |||
@@ -234,20 +234,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
234 | /// <returns></returns> | 234 | /// <returns></returns> |
235 | protected CachedUserInfo GetUserInfo(string firstName, string lastName) | 235 | protected CachedUserInfo GetUserInfo(string firstName, string lastName) |
236 | { | 236 | { |
237 | UserProfileData userProfile = CommsManager.UserService.GetUserProfile(firstName, lastName); | 237 | CachedUserInfo userInfo = CommsManager.UserProfileCacheService.GetUserDetails(firstName, lastName); |
238 | |||
239 | if (null == userProfile) | ||
240 | { | ||
241 | m_log.ErrorFormat("[INVENTORY ARCHIVER]: Failed to find user {0} {1}", firstName, lastName); | ||
242 | return null; | ||
243 | } | ||
244 | |||
245 | CachedUserInfo userInfo = CommsManager.UserProfileCacheService.GetUserDetails(userProfile.ID); | ||
246 | if (null == userInfo) | 238 | if (null == userInfo) |
247 | { | 239 | { |
248 | m_log.ErrorFormat( | 240 | m_log.ErrorFormat( |
249 | "[INVENTORY ARCHIVER]: Failed to find user info for {0} {1} {2}", | 241 | "[INVENTORY ARCHIVER]: Failed to find user info for {0} {1}", |
250 | firstName, lastName, userProfile.ID); | 242 | firstName, lastName); |
251 | return null; | 243 | return null; |
252 | } | 244 | } |
253 | 245 | ||