/**
* @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
$this->cache->set( $this->getCacheKey( 'empty' ), 'false', JobQueueDB::CACHE_TTL_LONG );
- return true;
+ return;
}
/**