Use AutoCommitUpdate in LinksUpdate::doUpdate
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 2 May 2018 00:22:33 +0000 (17:22 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 3 May 2018 23:47:17 +0000 (23:47 +0000)
commit8659c59dcfa7d7b1be83d6048ef477757f38047e
treea4a79f33e4861080d2cb4fe57fa9b361d87920c6
parente0ce6d3f2c771add56ba643cd7fd4eaf3c36dcdd
Use AutoCommitUpdate in LinksUpdate::doUpdate

The hook handlers are likely to write to secondary databases, in which
case it is better to wrap the callback in its own transaction round.

This lowers the chance of pending write warnings happening in
runMasterTransactionIdleCallbacks() as well as DBTransactionError
exceptions in LBFactory due to recursion during commit.

Bug: T191282
Bug: T193668
Change-Id: Ie207ca312888b6bb076f783d41f05b701f70a52e
includes/deferred/LinksUpdate.php