X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2Fstorage%2FfixT22757.php;h=6bc2f988b8f8b8a3179a37ef6a0e24f2e7e5cb1f;hb=a1159139a7c537c8a7d5b4f33e518d0ebcbe92d4;hp=b7ae6918a46ae852450fdb9ada9418c366c255ec;hpb=3f59cb9f3a53ad28f8a95fe299c5de6abd24b453;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/storage/fixT22757.php b/maintenance/storage/fixT22757.php index b7ae6918a4..6bc2f988b8 100644 --- a/maintenance/storage/fixT22757.php +++ b/maintenance/storage/fixT22757.php @@ -55,7 +55,7 @@ class FixT22757 extends Maintenance { $numFixed = 0; $numBad = 0; - $totalRevs = $dbr->selectField( 'text', 'MAX(old_id)', false, __METHOD__ ); + $totalRevs = $dbr->selectField( 'text', 'MAX(old_id)', '', __METHOD__ ); // In MySQL 4.1+, the binary field old_text has a non-working LOWER() function $lowerLeft = 'LOWER(CONVERT(LEFT(old_text,22) USING latin1))'; @@ -240,7 +240,6 @@ class FixT22757 extends Maintenance { __METHOD__ ); $this->commitTransaction( $dbw, __METHOD__ ); - $this->waitForSlaves(); } print "$primaryId: resolved to $url\n"; @@ -254,15 +253,6 @@ class FixT22757 extends Maintenance { print "Good stubs: $numGood\n"; } - function waitForSlaves() { - static $iteration = 0; - ++$iteration; - if ( ++$iteration > 50 == 0 ) { - wfWaitForSlaves(); - $iteration = 0; - } - } - function findTextIdInPage( $pageId, $textId ) { $ids = $this->getRevTextMap( $pageId ); if ( !isset( $ids[$textId] ) ) {