/**
* @see JobQueue::doBatchPush()
* @param array $jobs
- * @param array $flags
+ * @param int $flags
* @throws DBError|Exception
- * @return bool
+ * @return void
*/
protected function doBatchPush( array $jobs, $flags ) {
$dbw = $this->getMasterDB();
$that->doBatchPushInternal( $dbw, $jobs, $flags, $method );
}
);
-
- return true;
}
/**
* @param int $flags
* @param string $method
* @throws DBError
- * @return bool
+ * @return void
*/
public function doBatchPushInternal( IDatabase $dbw, array $jobs, $flags, $method ) {
if ( !count( $jobs ) ) {
- return true;
+ return;
}
$rowSet = array(); // (sha1 => job) map for jobs that are de-duplicated
- $rowList = array(); // list of jobs for jobs that are are not de-duplicated
+ $rowList = array(); // list of jobs for jobs that are not de-duplicated
foreach ( $jobs as $job ) {
$row = $this->insertFields( $job );
if ( $job->ignoreDuplicates() ) {
$this->cache->set( $this->getCacheKey( 'empty' ), 'false', JobQueueDB::CACHE_TTL_LONG );
- return true;
+ return;
}
/**
* @return void
*/
protected function doWaitForBackups() {
- wfWaitForSlaves();
+ wfWaitForSlaves( false, $this->wiki, $this->cluster ?: false );
}
/**