aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/TableCleanup.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/TableCleanup.php')
-rw-r--r--maintenance/TableCleanup.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/maintenance/TableCleanup.php b/maintenance/TableCleanup.php
index 42e85bd2e71c..c305d1360bae 100644
--- a/maintenance/TableCleanup.php
+++ b/maintenance/TableCleanup.php
@@ -123,7 +123,10 @@ class TableCleanup extends Maintenance {
$table = $params['table'];
// count(*) would melt the DB for huge tables, we can estimate here
- $count = $dbr->estimateRowCount( $table, '*', '', __METHOD__ );
+ $count = $dbr->newSelectQueryBuilder()
+ ->table( $table )
+ ->caller( __METHOD__ )
+ ->estimateRowCount();
$this->init( $count, $table );
$this->output( "Processing $table...\n" );