X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Finterwiki%2FClassicInterwikiLookup.php;h=0e107b3d112829682eac4dcfd5a6dcf4610c5150;hp=6ac165ab8247cd581e6c125e653b0a679bb9973e;hb=9964ca1a390c446397dcd466916ffed356cdc3c9;hpb=cdc53ad15b8131e1b4254cc788efa318a35fd804 diff --git a/includes/interwiki/ClassicInterwikiLookup.php b/includes/interwiki/ClassicInterwikiLookup.php index 6ac165ab82..0e107b3d11 100644 --- a/includes/interwiki/ClassicInterwikiLookup.php +++ b/includes/interwiki/ClassicInterwikiLookup.php @@ -37,7 +37,7 @@ use WANObjectCache; * and tree storage backends (SQL, CDB, and plain PHP arrays). * * All information is loaded on creation when called by $this->fetch( $prefix ). - * All work is done on slave, because this should *never* change (except during + * All work is done on replica DB, because this should *never* change (except during * schema updates etc, which aren't wiki-related) * * @since 1.28 @@ -282,7 +282,7 @@ class ClassicInterwikiLookup implements InterwikiLookup { $this->objectCache->makeKey( 'interwiki', $prefix ), $this->objectCacheExpiry, function ( $oldValue, &$ttl, array &$setOpts ) use ( $prefix ) { - $dbr = wfGetDB( DB_SLAVE ); // TODO: inject LoadBalancer + $dbr = wfGetDB( DB_REPLICA ); // TODO: inject LoadBalancer $setOpts += Database::getCacheSetOptions( $dbr ); @@ -395,7 +395,7 @@ class ClassicInterwikiLookup implements InterwikiLookup { * @return array[] Interwiki rows */ private function getAllPrefixesDB( $local ) { - $db = wfGetDB( DB_SLAVE ); // TODO: inject DB LoadBalancer + $db = wfGetDB( DB_REPLICA ); // TODO: inject DB LoadBalancer $where = [];