From 35cb46bcd7cd34ddb7099799ad318dbb6ee2c4e7 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 30 Sep 2018 15:30:16 +0200 Subject: [PATCH] Fix caller name in PopulateArchiveRevId::checkMysqlAutoIncrementBug Seeing {closure} in the logs as caller is not helpful Change-Id: Ie9091805bb4d9c05de93aef065cbbfef56c19e70 --- maintenance/populateArchiveRevId.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/populateArchiveRevId.php b/maintenance/populateArchiveRevId.php index c03eb24853..6eb2d6d61a 100644 --- a/maintenance/populateArchiveRevId.php +++ b/maintenance/populateArchiveRevId.php @@ -116,8 +116,8 @@ class PopulateArchiveRevId extends LoggedUpdateMaintenance { $toDelete[] = $id; $maxId = max( - (int)$dbw->selectField( 'archive', 'MAX(ar_rev_id)', [], __METHOD__ ), - (int)$dbw->selectField( 'slots', 'MAX(slot_revision_id)', [], __METHOD__ ) + (int)$dbw->selectField( 'archive', 'MAX(ar_rev_id)', [], $fname ), + (int)$dbw->selectField( 'slots', 'MAX(slot_revision_id)', [], $fname ) ); if ( $id <= $maxId ) { $dbw->insert( 'revision', [ 'rev_id' => $maxId + 1 ] + self::$dummyRev, $fname ); -- 2.20.1