Use estimateRowPage if wiki is using wgMiserMode

Change-Id: I59404e9514a87f65faf3eb865fafe358d9f01079
This commit is contained in:
Reedy 2012-07-06 17:57:40 +01:00
parent 34515a133e
commit a8cdc7df3a

View file

@ -79,13 +79,19 @@ TEXT;
$collationConds,
__METHOD__
);
if ( $count == 0 ) {
$this->output( "Collations up-to-date.\n" );
return;
}
$this->output( "Fixing collation for $count rows.\n" );
} else {
$count = $dbw->estimateRowCount(
'categorylinks',
'',
$collationConds,
__METHOD__
);
}
if ( $count == 0 ) {
$this->output( "Collations up-to-date.\n" );
return;
}
$this->output( "Fixing collation for $count rows.\n" );
}
$count = 0;