* > (string) links table name
* > (int) batch size
* > 'numRows' : Number of rows for this link table
- * > 'batches' : array( $start, $end )
+ * > 'batches' : [ $start, $end ]
*
* @see BacklinkCache::partitionResult()
*
}
/**
- * Get the slave connection to the database
+ * Get the replica DB connection to the database
* When non existing, will initialize the connection.
* @return DatabaseBase
*/
protected function getDB() {
if ( !isset( $this->db ) ) {
- $this->db = wfGetDB( DB_SLAVE );
+ $this->db = wfGetDB( DB_REPLICA );
}
return $this->db;
$conds = [
"{$prefix}_namespace" => $this->title->getNamespace(),
"{$prefix}_title" => $this->title->getDBkey(),
- $this->getDb()->makeList( [
+ $this->getDB()->makeList( [
"{$prefix}_interwiki" => '',
"{$prefix}_interwiki IS NULL",
], LIST_OR ),