From: Umherirrender Date: Sun, 30 Sep 2018 13:30:16 +0000 (+0200) Subject: Fix caller name in PopulateArchiveRevId::checkMysqlAutoIncrementBug X-Git-Tag: 1.34.0-rc.0~3955 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=35cb46bcd7cd34ddb7099799ad318dbb6ee2c4e7;p=lhc%2Fweb%2Fwiklou.git Fix caller name in PopulateArchiveRevId::checkMysqlAutoIncrementBug Seeing {closure} in the logs as caller is not helpful Change-Id: Ie9091805bb4d9c05de93aef065cbbfef56c19e70 --- 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 );