From 972a61ad4c81741d878c0e35f6bd8a2e7d62b62d Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 30 Sep 2018 15:06:08 +0200 Subject: [PATCH] Fix caller name in WatchedItemStore::updateNotificationTimestamp Seeing {closure} in the logs as caller is not helpful Change-Id: I13a6632523d0e7e96adf3c9af89c71f38d5342f5 --- includes/watcheditem/WatchedItemStore.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() ] ); } } -- 2.20.1