Convert SiteStatsUpdate to using newer addCallableUpdate method
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 19 Jul 2016 20:53:51 +0000 (13:53 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 19 Jul 2016 20:53:51 +0000 (13:53 -0700)
Change-Id: Ic6037b90edecc936432e997c504e81b3ae8732ad

includes/deferred/SiteStatsUpdate.php

index 5a62185..b8e2726 100644 (file)
@@ -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' ] );
                }
        }