add a lock on the update, this should have been there before.

still not convinced this will help, but it was wrong.
0.6.0-stable
Sean Dague 2008-05-22 18:31:47 +00:00
parent 36bfa66719
commit 1ebc6bfd0a
1 changed files with 13 additions and 2 deletions

View File

@ -696,8 +696,19 @@ namespace OpenSim.Data.MySQL
// override // override
override public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) override public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance)
{ {
appearance.Owner = user; try
database.insertAppearanceRow(appearance); {
lock (database)
{
appearance.Owner = user;
database.insertAppearanceRow(appearance);
}
}
catch (Exception e)
{
database.Reconnect();
m_log.Error(e.ToString());
}
} }
override public void AddAttachment(LLUUID user, LLUUID item) override public void AddAttachment(LLUUID user, LLUUID item)