https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c3bed1
)
urgent bugfix: Wrong function name for locks
author
Michael
<heluecht@pirati.ca>
Sun, 8 Jul 2018 08:32:50 +0000
(08:32 +0000)
committer
Michael
<heluecht@pirati.ca>
Sun, 8 Jul 2018 08:32:50 +0000
(08:32 +0000)
src/Model/Item.php
patch
|
blob
|
history
diff --git
a/src/Model/Item.php
b/src/Model/Item.php
index
8a96e54
..
1623871
100644
(file)
--- 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::re
mov
e('item_insert_activity');
+ Lock::re
leas
e('item_insert_activity');
}
return true;
}