From: Aaron Schulz Date: Tue, 19 Jul 2016 20:53:51 +0000 (-0700) Subject: Convert SiteStatsUpdate to using newer addCallableUpdate method X-Git-Tag: 1.31.0-rc.0~6329^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=d60c3c80d421fe4a0b6686913c540c7552fc263b;p=lhc%2Fweb%2Fwiklou.git Convert SiteStatsUpdate to using newer addCallableUpdate method Change-Id: Ic6037b90edecc936432e997c504e81b3ae8732ad --- 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' ] ); } }