X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FattachLatest.php;h=e1d7fca7e7fab9f4715ed0a10ac7e3ed8d6d3a9e;hb=72bec61d7ca4bc24731389f30c790662458c12c7;hp=4da09018c4c264bb0673a15919d83eb2be01d62d;hpb=e9a27a78e455de664144d0c3cfc789bcc411fab2;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/attachLatest.php b/maintenance/attachLatest.php index 4da09018c4..e1d7fca7e7 100644 --- a/maintenance/attachLatest.php +++ b/maintenance/attachLatest.php @@ -56,6 +56,8 @@ class AttachLatest extends Maintenance { __METHOD__ ); $lbFactory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory(); + $dbDomain = $lbFactory->getLocalDomainID(); + $n = 0; foreach ( $result as $row ) { $pageId = intval( $row->page_id ); @@ -66,18 +68,19 @@ class AttachLatest extends Maintenance { [ 'rev_page' => $pageId ], __METHOD__ ); if ( !$latestTime ) { - $this->output( wfWikiID() . " $pageId [[$name]] can't find latest rev time?!\n" ); + $this->output( "$dbDomain $pageId [[$name]] can't find latest rev time?!\n" ); continue; } $revision = Revision::loadFromTimestamp( $dbw, $title, $latestTime ); if ( is_null( $revision ) ) { - $this->output( wfWikiID() - . " $pageId [[$name]] latest time $latestTime, can't find revision id\n" ); + $this->output( + "$dbDomain $pageId [[$name]] latest time $latestTime, can't find revision id\n" + ); continue; } $id = $revision->getId(); - $this->output( wfWikiID() . " $pageId [[$name]] latest time $latestTime, rev id $id\n" ); + $this->output( "$dbDomain $pageId [[$name]] latest time $latestTime, rev id $id\n" ); if ( $this->hasOption( 'fix' ) ) { $page = WikiPage::factory( $title ); $page->updateRevisionOn( $dbw, $revision );