Make use of BatchRowIterator::setCaller

Bug: T261014
Change-Id: I803145598f8690e6f054defdc8361cc07a08d2e8
This commit is contained in:
Reedy 2020-09-04 18:30:20 +01:00
parent ba0cafc4bb
commit 68b1b460d6
2 changed files with 2 additions and 1 deletions

View file

@ -9,7 +9,7 @@
"license-name": "MIT",
"type": "other",
"requires": {
"MediaWiki": ">= 1.35.0",
"MediaWiki": ">= 1.36.0",
"extensions": {
"Echo": "*"
}

View file

@ -63,6 +63,7 @@ class MigratePreferences extends LoggedUpdateMaintenance {
],
] );
$iterator->setFetchColumns( [ '*' ] );
$iterator->setCaller( __METHOD__ );
$lastRow = (object)[ 'user_id' => 0 ];
$optionsToUpdate = [];