dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "objectcache: make more SqlBagOStuff methods private and rename shard variables"
[lhc/web/wiklou.git]
/
maintenance
/
updateSpecialPages.php
diff --git
a/maintenance/updateSpecialPages.php
b/maintenance/updateSpecialPages.php
index
12a454a
..
5d756e8
100644
(file)
--- a/
maintenance/updateSpecialPages.php
+++ b/
maintenance/updateSpecialPages.php
@@
-25,7
+25,6
@@
require_once __DIR__ . '/Maintenance.php';
use MediaWiki\MediaWikiServices;
require_once __DIR__ . '/Maintenance.php';
use MediaWiki\MediaWikiServices;
-use Wikimedia\Rdbms\DBReplicationWaitError;
/**
* Maintenance script to update cached special pages.
/**
* Maintenance script to update cached special pages.
@@
-50,7
+49,7
@@
class UpdateSpecialPages extends Maintenance {
$this->doSpecialPageCacheUpdates( $dbw );
foreach ( QueryPage::getPages() as $page ) {
$this->doSpecialPageCacheUpdates( $dbw );
foreach ( QueryPage::getPages() as $page ) {
- list(
$class
, $special ) = $page;
+ list( , $special ) = $page;
$limit = $page[2] ?? null;
# --list : just show the name of pages
$limit = $page[2] ?? null;
# --list : just show the name of pages
@@
-134,11
+133,7
@@
class UpdateSpecialPages extends Maintenance {
$this->output( "Reconnected\n\n" );
}
// Wait for the replica DB to catch up
$this->output( "Reconnected\n\n" );
}
// Wait for the replica DB to catch up
- try {
- $lbFactory->waitForReplication();
- } catch ( DBReplicationWaitError $e ) {
- // ignore
- }
+ $lbFactory->waitForReplication();
}
public function doSpecialPageCacheUpdates( $dbw ) {
}
public function doSpecialPageCacheUpdates( $dbw ) {