Remove query locking in MySQLUserProfileData. This is not necessary as the connection is not shared.
parent
709038aa2a
commit
0cb805a64c
|
@ -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]" +
|
||||
|
@ -1065,17 +1057,14 @@ namespace OpenSim.Data.MySQL
|
|||
using (MySqlCommand cmd = new MySqlCommand(query, dbcon))
|
||||
{
|
||||
cmd.Parameters.AddWithValue("?UserId", props.UserId.ToString());
|
||||
cmd.Parameters.AddWithValue("?TagId", props.TagId.ToString ());
|
||||
cmd.Parameters.AddWithValue("?DataKey", props.DataKey.ToString ());
|
||||
cmd.Parameters.AddWithValue("?DataVal", props.DataKey.ToString ());
|
||||
cmd.Parameters.AddWithValue("?TagId", props.TagId.ToString());
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue