X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateRevisionLength.php;h=a9457c2a1cd13f65b078bc4b734b4174f526fba2;hb=dfafef8e706af54706d2de621b845085604f154d;hp=dcb9933e5be736927967816fa91821b5be2ab927;hpb=71e4493c864e4f14f1c850c710be017a7198fd2b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateRevisionLength.php b/maintenance/populateRevisionLength.php index dcb9933e5b..a9457c2a1c 100644 --- a/maintenance/populateRevisionLength.php +++ b/maintenance/populateRevisionLength.php @@ -73,7 +73,7 @@ class PopulateRevisionLength extends LoggedUpdateMaintenance { * @return int */ protected function doLenUpdates( $table, $idCol, $prefix, $fields ) { - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $dbw = $this->getDB( DB_MASTER ); $start = $dbw->selectField( $table, "MIN($idCol)", false, __METHOD__ ); $end = $dbw->selectField( $table, "MAX($idCol)", false, __METHOD__ ); @@ -136,7 +136,7 @@ class PopulateRevisionLength extends LoggedUpdateMaintenance { $content = $rev->getContent(); if ( !$content ) { - # This should not happen, but sometimes does (bug 20757) + # This should not happen, but sometimes does (T22757) $id = $row->$idCol; $this->output( "Content of $table $id unavailable!\n" );