Avoid contention in updateLinksTimestamp()
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 7 Jun 2016 12:15:42 +0000 (05:15 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 7 Jun 2016 12:15:42 +0000 (05:15 -0700)
commit473ab6e80e28ac86444a256b4928d74e57f193ba
tree5d8439c662c4c84803df7667403d967b97f207bb
parent138db9d69142e399b234b618ad23c1965cedab75
Avoid contention in updateLinksTimestamp()

Since LinksUpdate::doUpdate() already flushes the transaction,
go ahead and flush before other DataUpdates might run (e.g.
from RefreshLinksJob). Also release the lock before running
the LinksUpdateComplete handlers, as the lock is just to keep
LinksUpdate instances from racing with each other.

Change-Id: Ied97fa36fbca0203123e9fc966d2e23bfd621c0e
includes/deferred/LinksUpdate.php