From fc7532449dfa54077c1698e0f34a2738fa336c26 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 11 Nov 2011 17:06:03 +0000 Subject: [PATCH] Same for the getPostDatabaseUpdateMaintenance We only need to run them once --- maintenance/update.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/maintenance/update.php b/maintenance/update.php index b0901bab2d..c4bf3b22da 100644 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -88,7 +88,7 @@ class UpdateMediaWiki extends Maintenance { $wgTitle = Title::newFromText( "MediaWiki database updater" ); $this->output( "MediaWiki {$wgVersion} Updater\n\n" ); - + wfWaitForSlaves( 5 ); // let's not kill databases, shall we? ;) --tor if ( !$this->hasOption( 'skip-compat-checks' ) ) { @@ -121,8 +121,12 @@ class UpdateMediaWiki extends Maintenance { $updater->doUpdates( $updates ); foreach( $updater->getPostDatabaseUpdateMaintenance() as $maint ) { + if ( $updater->updateRowExists( $maint ) ) { + continue; + } $child = $this->runChild( $maint ); $child->execute(); + $updater->insertUpdateRow( $maint ); } $this->output( "\nDone.\n" ); -- 2.20.1