X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpurgeChangedFiles.php;h=615d1fe9a2fd3c58999de9a659401447031d741b;hb=565668376998b16ef9b5442e3d41cc91a22cf78f;hp=70a26cbdf626c6433114d0223b92b0ed94b2b0ba;hpb=b54d9cb68067a4a274b518a510b59cedabab937f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeChangedFiles.php b/maintenance/purgeChangedFiles.php index 70a26cbdf6..615d1fe9a2 100644 --- a/maintenance/purgeChangedFiles.php +++ b/maintenance/purgeChangedFiles.php @@ -106,7 +106,7 @@ class PurgeChangedFiles extends Maintenance { } // Validate the timestamps - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $this->startTimestamp = $dbr->timestamp( $this->getOption( 'starttime' ) ); $this->endTimestamp = $dbr->timestamp( $this->getOption( 'endtime' ) ); @@ -137,7 +137,7 @@ class PurgeChangedFiles extends Maintenance { */ protected function purgeFromLogType( $type ) { $repo = RepoGroup::singleton()->getLocalRepo(); - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); foreach ( self::$typeMappings[$type] as $logType => $logActions ) { $this->verbose( "Scanning for {$logType}/" . implode( ',', $logActions ) . "\n" );