Use estimateRowPage if wiki is using wgMiserMode
Change-Id: I59404e9514a87f65faf3eb865fafe358d9f01079
This commit is contained in:
parent
34515a133e
commit
a8cdc7df3a
1 changed files with 12 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue