Comment out table level lock (it can cause dead locks in some edge cases)

This commit is contained in:
Duncan Sommerville 2015-07-06 18:05:05 -04:00
parent db7e4086ba
commit 42fd118658

View file

@ -31,7 +31,8 @@ class Application_Model_Preference
$con->beginTransaction(); $con->beginTransaction();
try { try {
static::_lock($con); /* Comment this out while we reevaluate it in favor of a unique constraint
static::_lock($con); */
$userId = self::getUserId(); $userId = self::getUserId();
if ($isUserValue && is_null($userId)) { if ($isUserValue && is_null($userId)) {