From c25c3b5981787df9a2de9ef85d76f9934440f2d7 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 8 Jul 2018 08:32:50 +0000 Subject: [PATCH] urgent bugfix: Wrong function name for locks --- src/Model/Item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 8a96e5440..162387185 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1731,7 +1731,7 @@ class Item extends BaseObject } // To avoid timing problems, we are using locks. - $locked = Lock::set('item_insert_activity'); + $locked = Lock::acquire('item_insert_activity'); if (!$locked) { logger("Couldn't acquire lock for URI " . $item['uri'] . " - proceeding anyway."); } @@ -1751,7 +1751,7 @@ class Item extends BaseObject return false; } if ($locked) { - Lock::remove('item_insert_activity'); + Lock::release('item_insert_activity'); } return true; }