From a8cdc7df3a8cb8323719102cd266bbfccdbe0458 Mon Sep 17 00:00:00 2001 From: Reedy Date: Fri, 6 Jul 2012 17:57:40 +0100 Subject: [PATCH] Use estimateRowPage if wiki is using wgMiserMode Change-Id: I59404e9514a87f65faf3eb865fafe358d9f01079 --- maintenance/updateCollation.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/maintenance/updateCollation.php b/maintenance/updateCollation.php index 6160a3054b..fd425fe7b7 100644 --- a/maintenance/updateCollation.php +++ b/maintenance/updateCollation.php @@ -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; -- 2.20.1