Revision db2d93dd
Added by Benjamin Luce over 9 years ago
drupal7/modules/system/system.queue.inc | ||
---|---|---|
231 | 231 |
// until an item is successfully claimed or we are reasonably sure there |
232 | 232 |
// are no unclaimed items left. |
233 | 233 |
while (TRUE) { |
234 |
$item = db_query_range('SELECT data, item_id FROM {queue} q WHERE expire = 0 AND name = :name ORDER BY created ASC', 0, 1, array(':name' => $this->name))->fetchObject(); |
|
234 |
$item = db_query_range('SELECT data, item_id FROM {queue} q WHERE expire = 0 AND name = :name ORDER BY created, item_id ASC', 0, 1, array(':name' => $this->name))->fetchObject();
|
|
235 | 235 |
if ($item) { |
236 | 236 |
// Try to update the item. Only one thread can succeed in UPDATEing the |
237 | 237 |
// same row. We cannot rely on REQUEST_TIME because items might be |
Also available in: Unified diff
Update to 7.37