For the maintenance/ directory files:
[lhc/web/wiklou.git] / maintenance / storage / resolveStubs.php
index e93d5c9..343222a 100644 (file)
@@ -19,7 +19,6 @@ function resolveStubs() {
        $fname = 'resolveStubs';
 
        $dbr =& wfGetDB( DB_SLAVE );
-       $dbw =& wfGetDB( DB_MASTER );
        $maxID = $dbr->selectField( 'text', 'MAX(old_id)', false, $fname );
        $blockSize = 10000;
        $numBlocks = intval( $maxID / $blockSize ) + 1;
@@ -30,9 +29,6 @@ function resolveStubs() {
                printf( "%5.2f%%\n", $b / $numBlocks * 100 );
                $start = intval($maxID / $numBlocks) * $b + 1;
                $end = intval($maxID / $numBlocks) * ($b + 1);
-               $stubs = array();
-               $flagsArray = array();
-
                
                $res = $dbr->select( 'text', array( 'old_id', 'old_text', 'old_flags' ),
                        "old_id>=$start AND old_id<=$end " .