aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLUserData.cs
diff options
context:
space:
mode:
authorSean Dague2008-05-22 18:31:47 +0000
committerSean Dague2008-05-22 18:31:47 +0000
commit1ebc6bfd0a949980b0c4a61ac0f9b851633fc4f3 (patch)
treed4c3a79de2aab882a23dc8a900b40c8bc1da4b16 /OpenSim/Data/MySQL/MySQLUserData.cs
parentwe should be return null in these 2 places, though this won't (diff)
downloadopensim-SC-1ebc6bfd0a949980b0c4a61ac0f9b851633fc4f3.zip
opensim-SC-1ebc6bfd0a949980b0c4a61ac0f9b851633fc4f3.tar.gz
opensim-SC-1ebc6bfd0a949980b0c4a61ac0f9b851633fc4f3.tar.bz2
opensim-SC-1ebc6bfd0a949980b0c4a61ac0f9b851633fc4f3.tar.xz
add a lock on the update, this should have been there before.
still not convinced this will help, but it was wrong.
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLUserData.cs15
1 files changed, 13 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs
index 35bcb1d..745583f 100644
--- a/OpenSim/Data/MySQL/MySQLUserData.cs
+++ b/OpenSim/Data/MySQL/MySQLUserData.cs
@@ -696,8 +696,19 @@ namespace OpenSim.Data.MySQL
696 // override 696 // override
697 override public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) 697 override public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance)
698 { 698 {
699 appearance.Owner = user; 699 try
700 database.insertAppearanceRow(appearance); 700 {
701 lock (database)
702 {
703 appearance.Owner = user;
704 database.insertAppearanceRow(appearance);
705 }
706 }
707 catch (Exception e)
708 {
709 database.Reconnect();
710 m_log.Error(e.ToString());
711 }
701 } 712 }
702 713
703 override public void AddAttachment(LLUUID user, LLUUID item) 714 override public void AddAttachment(LLUUID user, LLUUID item)