Make DeferredUpdates detect LBFactory transaction rounds
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 9 Jun 2017 02:56:02 +0000 (19:56 -0700)
committerKrinkle <krinklemail@gmail.com>
Sat, 10 Jun 2017 15:22:32 +0000 (15:22 +0000)
commit95fdff36c251d9d1807c7b5b0bf84acc457f0d1e
treea14d52cbf48e0d15dc48c28cd0ff26a40cafbaf7
parent387c684e9d40f8ee43a979397fe726bf67c307d3
Make DeferredUpdates detect LBFactory transaction rounds

Previously, tryOpportunisticExecute() tried to nest transaction rounds,
which would fail. Added LBFactory::hasTransactionRound() as needed.

Also cleaned up some unqualified class names in callbacks and set the
PRESEND flag for the JobQueueDB AutoCommitUpdate callback. Use the
proper getMasterDB() method while at it. These follow up 24842cfac.

Bug: T154425
Change-Id: Ib1d38f68bd217903d1a7d46fb15b7d7d9620daa6
includes/MediaWiki.php
includes/deferred/DeferredUpdates.php
includes/jobqueue/JobQueueDB.php
includes/jobqueue/JobRunner.php
includes/libs/rdbms/lbfactory/ILBFactory.php
includes/libs/rdbms/lbfactory/LBFactory.php