summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-06-26 15:09:30 -0400
committerBrion Vibber <brion@pobox.com>2010-06-26 15:09:30 -0400
commitc6b1e25d1732471f91687cc09ace5face1820b72 (patch)
treead2088c713a8161a9fb5103e158a181c1409f6de /lib
parent696e4ba393c658d5b2e1fe46e1389bd7b2cfdb34 (diff)
parentef7e85c0ab79dcac5239aaee2e3f329588db6397 (diff)
Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib')
-rw-r--r--lib/dbqueuemanager.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/dbqueuemanager.php b/lib/dbqueuemanager.php
index 3032e4ec7..3dda9fd1a 100644
--- a/lib/dbqueuemanager.php
+++ b/lib/dbqueuemanager.php
@@ -135,9 +135,7 @@ class DBQueueManager extends QueueManager
if (empty($qi->claimed)) {
$this->_log(LOG_WARNING, "[$queue:item $qi->id] Ignoring failure for unclaimed queue item");
} else {
- $orig = clone($qi);
- $qi->claimed = null;
- $qi->update($orig);
+ $qi->releaseClaim();
}
$this->stats('error', $queue);