Remove query locking in MySQLUserProfileData. This is not necessary as the connection is not shared.

0.8-extended
Justin Clark-Casey (justincc) 2014-08-22 20:28:56 +01:00 committed by Justin Clark-Casey
parent 3438985b0d
commit 3d49be21bc
1 changed files with 8 additions and 20 deletions

View File

@ -47,11 +47,6 @@ namespace OpenSim.Data.MySQL
get; set;
}
protected object Lock
{
get; set;
}
protected virtual Assembly Assembly
{
get { return GetType().Assembly; }
@ -1026,8 +1021,6 @@ namespace OpenSim.Data.MySQL
put.Parameters.AddWithValue("?DataKey", props.DataKey.ToString());
put.Parameters.AddWithValue("?DataVal", props.DataVal.ToString());
lock(Lock)
{
put.ExecuteNonQuery();
}
}
@ -1035,7 +1028,6 @@ namespace OpenSim.Data.MySQL
}
}
}
}
catch (Exception e)
{
m_log.DebugFormat("[PROFILES_DATA]" +
@ -1069,13 +1061,10 @@ namespace OpenSim.Data.MySQL
cmd.Parameters.AddWithValue("?DataKey", props.DataKey.ToString());
cmd.Parameters.AddWithValue("?DataVal", props.DataKey.ToString());
lock(Lock)
{
cmd.ExecuteNonQuery();
}
}
}
}
catch (Exception e)
{
m_log.DebugFormat("[PROFILES_DATA]" +
@ -1087,4 +1076,3 @@ namespace OpenSim.Data.MySQL
#endregion Integration
}
}