Index: trunk/phase3/maintenance/fixSlaveDesync.php |
— | — | @@ -22,14 +22,17 @@ |
23 | 23 | |
24 | 24 | class FixSlaveDesync extends Maintenance { |
25 | 25 | public function __construct() { |
| 26 | + global $wgUseRootUser; |
| 27 | + $wgUseRootUser = true; |
| 28 | + |
26 | 29 | parent::__construct(); |
27 | 30 | $this->mDescription = ""; |
28 | 31 | |
29 | 32 | } |
30 | 33 | |
31 | 34 | public function execute() { |
32 | | - global $wgUseRootUser, $wgDBservers; |
33 | | - $wgUseRootUser = true; |
| 35 | + global $slaveIndexes, $wgDBservers; |
| 36 | + |
34 | 37 | |
35 | 38 | $slaveIndexes = array(); |
36 | 39 | for ( $i = 1; $i < count( $wgDBservers ); $i++ ) { |