dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3205049
)
don't limit random range, no need, and not efficient
author
Domas Mituzas
<midom@users.mediawiki.org>
Tue, 29 Jul 2008 09:51:02 +0000
(09:51 +0000)
committer
Domas Mituzas
<midom@users.mediawiki.org>
Tue, 29 Jul 2008 09:51:02 +0000
(09:51 +0000)
includes/JobQueue.php
patch
|
blob
|
history
diff --git
a/includes/JobQueue.php
b/includes/JobQueue.php
index
8bfd1b3
..
54d632c
100644
(file)
--- a/
includes/JobQueue.php
+++ b/
includes/JobQueue.php
@@
-127,7
+127,7
@@
abstract class Job {
// Failed, someone else beat us to it
// Try getting a random row
$row = $dbw->selectRow( 'job', array( 'MIN(job_id) as minjob',
- 'MAX(job_id) as maxjob' ),
"job_id >= $offset",
__METHOD__ );
+ 'MAX(job_id) as maxjob' ), __METHOD__ );
if ( $row === false || is_null( $row->minjob ) || is_null( $row->maxjob ) ) {
// No jobs to get
wfProfileOut( __METHOD__ );