Add gripe about FIFO and random row selection
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 16 Feb 2009 18:06:04 +0000 (18:06 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 16 Feb 2009 18:06:04 +0000 (18:06 +0000)
includes/JobQueue.php

index afa757d..a753958 100644 (file)
@@ -126,6 +126,7 @@ abstract class Job {
                if ( !$affected ) {
                        // Failed, someone else beat us to it
                        // Try getting a random row
+                       // FIXME: FIFO???
                        $row = $dbw->selectRow( 'job', array( 'MIN(job_id) as minjob',
                                'MAX(job_id) as maxjob' ), '1=1', __METHOD__ );
                        if ( $row === false || is_null( $row->minjob ) || is_null( $row->maxjob ) ) {