Index: branches/wmf/1.18wmf1/maintenance/upgrade-1.18wmf1-1.php |
— | — | @@ -55,9 +55,11 @@ |
56 | 56 | foreach ( $wikisBySection[$section] as $wiki ) { |
57 | 57 | $db->selectDB( $wiki ); |
58 | 58 | $this->upgradeWiki( $db ); |
59 | | - while ( $db->getLag() > 10 ) { |
60 | | - echo "Waiting for $server to catch up to master.\n"; |
61 | | - sleep( 60 ); |
| 59 | + if ( !$this->getOption( 'secondary' ) ) { |
| 60 | + while ( $db->getLag() > 10 ) { |
| 61 | + echo "Waiting for $server to catch up to master.\n"; |
| 62 | + sleep( 60 ); |
| 63 | + } |
62 | 64 | } |
63 | 65 | } |
64 | 66 | } |