From: Umherirrender Date: Sun, 30 Sep 2018 13:06:08 +0000 (+0200) Subject: Fix caller name in WatchedItemStore::updateNotificationTimestamp X-Git-Tag: 1.34.0-rc.0~3957 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=972a61ad4c81741d878c0e35f6bd8a2e7d62b62d;p=lhc%2Fweb%2Fwiklou.git Fix caller name in WatchedItemStore::updateNotificationTimestamp Seeing {closure} in the logs as caller is not helpful Change-Id: I13a6632523d0e7e96adf3c9af89c71f38d5342f5 --- diff --git a/includes/watcheditem/WatchedItemStore.php b/includes/watcheditem/WatchedItemStore.php index 6b0c2aab11..1b92f51b42 100644 --- a/includes/watcheditem/WatchedItemStore.php +++ b/includes/watcheditem/WatchedItemStore.php @@ -823,7 +823,7 @@ class WatchedItemStore implements WatchedItemStoreInterface, StatsdAwareInterfac $dbw = $this->getConnectionRef( DB_MASTER ); $factory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory(); - $ticket = $factory->getEmptyTransactionTicket( __METHOD__ ); + $ticket = $factory->getEmptyTransactionTicket( $fname ); $watchersChunks = array_chunk( $watchers, $wgUpdateRowsPerQuery ); foreach ( $watchersChunks as $watchersChunk ) { @@ -838,7 +838,7 @@ class WatchedItemStore implements WatchedItemStoreInterface, StatsdAwareInterfac ); if ( count( $watchersChunks ) > 1 ) { $factory->commitAndWaitForReplication( - __METHOD__, $ticket, [ 'domain' => $dbw->getDomainID() ] + $fname, $ticket, [ 'domain' => $dbw->getDomainID() ] ); } }