Remove unnecessary LOCK TABLE that can cause deadlocks in rare circumstances

This commit is contained in:
Albert Santoni 2015-04-16 12:10:56 -04:00
parent 4267c4e86d
commit aa0d0f959a
1 changed files with 0 additions and 2 deletions

View File

@ -37,8 +37,6 @@ class Application_Model_Preference
if ($isUserValue && is_null($userId))
throw new Exception("User id can't be null for a user preference {$key}.");
Application_Common_Database::prepareAndExecute("LOCK TABLE cc_pref");
//Check if key already exists
$sql = "SELECT COUNT(*) FROM cc_pref"
." WHERE keystr = :key";