Add AutoCommitUpdate class and replace some onTransactionIdle callers
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 19 Jul 2016 20:43:17 +0000 (13:43 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 21 Jul 2016 05:24:28 +0000 (05:24 +0000)
commit3c21f0e8e5459400caf0ea2934976e86fe5918e0
treee7da2e7af35e3adb0b152544708b90d723e8a73c
parent68978670d28263e40dfe26e3aa3566290d9ccc0b
Add AutoCommitUpdate class and replace some onTransactionIdle callers

* This puts the complex logic here after the commit step for
  all DBs, making the main multi-DB transaction more likely
  to be atomic.
* Made some cleanups to AtomicSectionUpdate and made it cancel
  if the transaction is rolled back as it should.
* Also cleaned up some closures for PHP 5.4.

Change-Id: If2f7bb6b1ba6daf1cfdc934f27c32b0b10431a3d
autoload.php
includes/Title.php
includes/deferred/AtomicSectionUpdate.php
includes/deferred/AutoCommitUpdate.php [new file with mode: 0644]
includes/filerepo/file/LocalFile.php