dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[JobQueue] Do not count claimed jobs in isEmpty().
[lhc/web/wiklou.git]
/
includes
/
job
/
JobQueueDB.php
diff --git
a/includes/job/JobQueueDB.php
b/includes/job/JobQueueDB.php
index
fc2ea7d
..
4d0f294
100644
(file)
--- a/
includes/job/JobQueueDB.php
+++ b/
includes/job/JobQueueDB.php
@@
-49,11
+49,12
@@
class JobQueueDB extends JobQueue {
return false;
}
return false;
}
- $found = $this->getSlaveDB()->selectField(
- 'job', '1', array( 'job_cmd' => $this->type ), __METHOD__
+ $found = $this->getSlaveDB()->selectField(
// unclaimed job
+ 'job', '1', array( 'job_cmd' => $this->type
, 'job_token' => ''
), __METHOD__
);
$wgMemc->add( $key, $found ? 'false' : 'true', self::CACHE_TTL );
);
$wgMemc->add( $key, $found ? 'false' : 'true', self::CACHE_TTL );
+ return (bool)$found;
}
/**
}
/**