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:
ff2b59e
)
Add gripe about FIFO and random row selection
author
Aaron Schulz
<aaron@users.mediawiki.org>
Mon, 16 Feb 2009 18:06:04 +0000
(18:06 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Mon, 16 Feb 2009 18:06:04 +0000
(18:06 +0000)
includes/JobQueue.php
patch
|
blob
|
history
diff --git
a/includes/JobQueue.php
b/includes/JobQueue.php
index
afa757d
..
a753958
100644
(file)
--- 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 ) ) {