From d60c3c80d421fe4a0b6686913c540c7552fc263b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 19 Jul 2016 13:53:51 -0700 Subject: [PATCH] Convert SiteStatsUpdate to using newer addCallableUpdate method Change-Id: Ic6037b90edecc936432e997c504e81b3ae8732ad --- includes/deferred/SiteStatsUpdate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/deferred/SiteStatsUpdate.php b/includes/deferred/SiteStatsUpdate.php index 5a621854c9..b8e2726d5a 100644 --- a/includes/deferred/SiteStatsUpdate.php +++ b/includes/deferred/SiteStatsUpdate.php @@ -74,7 +74,7 @@ class SiteStatsUpdate implements DeferrableUpdate { $this->doUpdatePendingDeltas(); } else { // Need a separate transaction because this a global lock - wfGetDB( DB_MASTER )->onTransactionIdle( [ $this, 'tryDBUpdateInternal' ] ); + DeferredUpdates::addCallableUpdate( [ $this, 'tryDBUpdateInternal' ] ); } } -- 2.20.1