aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-04-21 20:12:33 +0000
committerJustin Clarke Casey2009-04-21 20:12:33 +0000
commit607156cae844ec97b8bab273075127a6248a81c3 (patch)
tree4f8b9c474fc0ce3f23feeb623fadb8bd366ec654 /OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
parentThank you kindly, TLaukkan for a patch that: (diff)
downloadopensim-SC_OLD-607156cae844ec97b8bab273075127a6248a81c3.zip
opensim-SC_OLD-607156cae844ec97b8bab273075127a6248a81c3.tar.gz
opensim-SC_OLD-607156cae844ec97b8bab273075127a6248a81c3.tar.bz2
opensim-SC_OLD-607156cae844ec97b8bab273075127a6248a81c3.tar.xz
* Comment out user profile cache update method for now
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs')
-rw-r--r--OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs37
1 files changed, 20 insertions, 17 deletions
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
index 36fe6e3..8f37f27 100644
--- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
+++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
@@ -173,23 +173,26 @@ namespace OpenSim.Framework.Communications.Cache
173 /// </summary> 173 /// </summary>
174 /// <param name="userProfile"></param> 174 /// <param name="userProfile"></param>
175 /// <returns>true if a user profile was found to update, false otherwise</returns> 175 /// <returns>true if a user profile was found to update, false otherwise</returns>
176 public bool UpdateProfile(UserProfileData userProfile) 176 // Commented out for now. The implementation needs to be improved by protecting against race conditions,
177 { 177 // probably by making sure that the update doesn't use the UserCacheInfo.UserProfile directly (possibly via
178 lock (m_userProfilesById) 178 // returning a read only class from the cache).
179 { 179// public bool UpdateProfile(UserProfileData userProfile)
180 CachedUserInfo userInfo = GetUserDetails(userProfile.ID); 180// {
181 181// lock (m_userProfilesById)
182 if (userInfo != null) 182// {
183 { 183// CachedUserInfo userInfo = GetUserDetails(userProfile.ID);
184 userInfo.m_userProfile = userProfile; 184//
185 m_commsManager.UserService.UpdateUserProfile(userProfile); 185// if (userInfo != null)
186 186// {
187 return true; 187// userInfo.m_userProfile = userProfile;
188 } 188// m_commsManager.UserService.UpdateUserProfile(userProfile);
189 } 189//
190 190// return true;
191 return false; 191// }
192 } 192// }
193//
194// return false;
195// }
193 196
194 /// <summary> 197 /// <summary>
195 /// Populate caches with the given user profile 198 /// Populate caches with the given user profile