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

bullet-2.82
Justin Clark-Casey (justincc) 2014-08-22 20:28:56 +01:00
parent 709038aa2a
commit 0cb805a64c
1 changed files with 8 additions and 20 deletions

View File

@ -46,11 +46,6 @@ namespace OpenSim.Data.MySQL
{ {
get; set; get; set;
} }
protected object Lock
{
get; set;
}
protected virtual Assembly Assembly protected virtual Assembly Assembly
{ {
@ -1025,11 +1020,8 @@ namespace OpenSim.Data.MySQL
put.Parameters.AddWithValue("?TagId", props.TagId.ToString()); put.Parameters.AddWithValue("?TagId", props.TagId.ToString());
put.Parameters.AddWithValue("?DataKey", props.DataKey.ToString()); put.Parameters.AddWithValue("?DataKey", props.DataKey.ToString());
put.Parameters.AddWithValue("?DataVal", props.DataVal.ToString()); put.Parameters.AddWithValue("?DataVal", props.DataVal.ToString());
lock(Lock) put.ExecuteNonQuery();
{
put.ExecuteNonQuery();
}
} }
} }
} }
@ -1065,14 +1057,11 @@ namespace OpenSim.Data.MySQL
using (MySqlCommand cmd = new MySqlCommand(query, dbcon)) using (MySqlCommand cmd = new MySqlCommand(query, dbcon))
{ {
cmd.Parameters.AddWithValue("?UserId", props.UserId.ToString()); cmd.Parameters.AddWithValue("?UserId", props.UserId.ToString());
cmd.Parameters.AddWithValue("?TagId", props.TagId.ToString ()); cmd.Parameters.AddWithValue("?TagId", props.TagId.ToString());
cmd.Parameters.AddWithValue("?DataKey", props.DataKey.ToString ()); cmd.Parameters.AddWithValue("?DataKey", props.DataKey.ToString());
cmd.Parameters.AddWithValue("?DataVal", props.DataKey.ToString ()); cmd.Parameters.AddWithValue("?DataVal", props.DataKey.ToString());
lock(Lock) cmd.ExecuteNonQuery();
{
cmd.ExecuteNonQuery();
}
} }
} }
} }
@ -1086,5 +1075,4 @@ namespace OpenSim.Data.MySQL
} }
#endregion Integration #endregion Integration
} }
} }