Clean up DeferredUpdates transaction handling
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 18 Jul 2019 19:27:07 +0000 (12:27 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 18 Jul 2019 20:16:28 +0000 (13:16 -0700)
commitb39f8289ff56e50213129abee91f3791bc6ffeb5
tree9f2ec2ff94d472ec698bab6ac740d4dab6ed9011
parentfaa497e1d930563dbeefffbb162317d01a383434
Clean up DeferredUpdates transaction handling

Bail out in attemptUpdate() if the transaction state is dirty rather
that failing at some later point. Also, flush implicit transaction
rounds before calling DeferrableUpdate::doUpdate() for fresher data.

Bug: T225103
Change-Id: I4f5d2f9814a562069619f05e003663fcedbd3f64
includes/deferred/DeferredUpdates.php