diff options
author | David Rothstein <drothstein@gmail.com> | 2015-05-04 16:41:24 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2015-05-04 16:41:24 -0400 |
commit | 39762b7135c10cd392061cafba504c2e7d8e2a3d (patch) | |
tree | 00db2427ae3e69cf2f5a03b0969355597218c13e /modules | |
parent | 2a3cf926af6259f85096b83522fbb890f51eb0fa (diff) | |
download | brdo-39762b7135c10cd392061cafba504c2e7d8e2a3d.tar.gz brdo-39762b7135c10cd392061cafba504c2e7d8e2a3d.tar.bz2 |
Issue #2356983 by bzrudi71, Dave Reid, jaredsmith: SystemQueue::claimItem() sometimes returns items in the wrong order (resolves locale test failures on PostgreSQL)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/system.queue.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.queue.inc b/modules/system/system.queue.inc index 901c4d6db..6eeaae19d 100644 --- a/modules/system/system.queue.inc +++ b/modules/system/system.queue.inc @@ -231,7 +231,7 @@ class SystemQueue implements DrupalReliableQueueInterface { // until an item is successfully claimed or we are reasonably sure there // are no unclaimed items left. while (TRUE) { - $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(); + $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(); if ($item) { // Try to update the item. Only one thread can succeed in UPDATEing the // same row. We cannot rely on REQUEST_TIME because items might be |