deferred: Introduce TransactionRoundDefiningUpdate
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 12 Oct 2017 20:19:56 +0000 (21:19 +0100)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 13 Oct 2017 21:24:11 +0000 (21:24 +0000)
commit6b2f8639b681bdaec318d5423a202e46ea796846
treea7ab68c8b6c3644fa7f23e1fe8aeb4cb94478443
parent31c461e75e4265b55e30844102136b6dc35ee32a
deferred: Introduce TransactionRoundDefiningUpdate

This allows scheduling of updates that need to start their own
transaction round. Specifically for cases where the ability to
commit early is not enough (which is already possible via LBFactory
getEmptyTransactionTicket and commitAndWaitForReplication).

Change-Id: I0910587b61c8ddf825f91e92c2f93582cc7ebd80
autoload.php
includes/deferred/DeferredUpdates.php
includes/deferred/TransactionRoundDefiningUpdate.php [new file with mode: 0644]
tests/phpunit/includes/deferred/DeferredUpdatesTest.php
tests/phpunit/includes/deferred/TransactionRoundDefiningUpdateTest.php [new file with mode: 0644]