From aa0d0f959a02ba341f17306167e98ec1906ed12e Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Thu, 16 Apr 2015 12:10:56 -0400 Subject: [PATCH] Remove unnecessary LOCK TABLE that can cause deadlocks in rare circumstances --- airtime_mvc/application/models/Preference.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index 1ba71e782..f67cc1051 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -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";