From: Sam Reed Date: Fri, 11 Nov 2011 17:06:03 +0000 (+0000) Subject: Same for the getPostDatabaseUpdateMaintenance X-Git-Tag: 1.31.0-rc.0~26553 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=fc7532449dfa54077c1698e0f34a2738fa336c26;p=lhc%2Fweb%2Fwiklou.git Same for the getPostDatabaseUpdateMaintenance We only need to run them once --- 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" );