Pass function name to IDatabase::selectField

Useful for logging

Change-Id: I7a4dd801221d09f3f9dd4d847340935735d2b491
This commit is contained in:
Umherirrender 2020-06-07 01:51:02 +02:00
parent b93339b4f3
commit 54aa7a3f3a

View file

@ -43,7 +43,7 @@ class Cleanup extends Maintenance {
$dryRun = $this->hasOption( 'dry-run' );
$dbr = wfGetDB( DB_REPLICA );
$maxID = (int)$dbr->selectField( 'page', 'MAX(page_id)' );
$maxID = (int)$dbr->selectField( 'page', 'MAX(page_id)', [], __METHOD__ );
$reportingInterval = 100;
$this->output( "Regexes are " . implode( ', ', array_map( 'count', $regexes ) ) . " bytes\n" );