Index: trunk/phase3/includes/JobQueue.php |
— | — | @@ -127,7 +127,7 @@ |
128 | 128 | // Failed, someone else beat us to it |
129 | 129 | // Try getting a random row |
130 | 130 | $row = $dbw->selectRow( 'job', array( 'MIN(job_id) as minjob', |
131 | | - 'MAX(job_id) as maxjob' ), __METHOD__ ); |
| 131 | + 'MAX(job_id) as maxjob' ), '1=1', __METHOD__ ); |
132 | 132 | if ( $row === false || is_null( $row->minjob ) || is_null( $row->maxjob ) ) { |
133 | 133 | // No jobs to get |
134 | 134 | wfProfileOut( __METHOD__ ); |