diff options
author | Brion Vibber <brion@pobox.com> | 2010-06-26 15:09:30 -0400 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-06-26 15:09:30 -0400 |
commit | c6b1e25d1732471f91687cc09ace5face1820b72 (patch) | |
tree | ad2088c713a8161a9fb5103e158a181c1409f6de /classes | |
parent | 696e4ba393c658d5b2e1fe46e1389bd7b2cfdb34 (diff) | |
parent | ef7e85c0ab79dcac5239aaee2e3f329588db6397 (diff) |
Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'classes')
-rw-r--r-- | classes/Queue_item.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/classes/Queue_item.php b/classes/Queue_item.php index f83c2cef1..c7e17be6e 100644 --- a/classes/Queue_item.php +++ b/classes/Queue_item.php @@ -64,4 +64,17 @@ class Queue_item extends Memcached_DataObject $qi = null; return null; } + + /** + * Release a claimed item. + */ + function releaseCLaim() + { + // DB_DataObject doesn't let us save nulls right now + $sql = sprintf("UPDATE queue_item SET claimed=NULL WHERE id=%d", $this->id); + $this->query($sql); + + $this->claimed = null; + $this->encache(); + } } |