From 2626ac372d3aa6aa5875e9244c834a581879b8c2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 16 Feb 2009 18:06:04 +0000 Subject: [PATCH] Add gripe about FIFO and random row selection --- includes/JobQueue.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/JobQueue.php b/includes/JobQueue.php index afa757d752..a753958fe7 100644 --- a/includes/JobQueue.php +++ b/includes/JobQueue.php @@ -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 ) ) { -- 2.20.1