Make updateCategoryCounts() have better lag checks
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 19 Oct 2016 03:55:35 +0000 (20:55 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 20 Oct 2016 22:33:18 +0000 (15:33 -0700)
commite3b7bf4d0ad7945d9cd9f900fc10400faff232dd
tree31e70a3f9bf6fdede9055993bbeda2ac4cc06d66
parent875ccb36251bd6e0d4f082dbb4d8dde9d1b3e05d
Make updateCategoryCounts() have better lag checks

* Add the lag checks to LinksUpdate. Previously, only
  LinksDeletionUpdate had any such checks.
* Remove the transaction hook usage, since the only two callers are
  already lag/contention aware. Deferring them just makes the wait
  checks pointless and they might end up happening all at once.
* Also set the visibility on some neigboring methods.
* Clean up LinksUpdate $existing variables in passing. Instead of
  overriding the same variable, use a differently named variable
  to avoid mistakes.

Bug: T95501
Change-Id: I43e3af17399417cbf0ab4e5e7d1f2bd518fa7e90
includes/deferred/LinksUpdate.php
includes/page/WikiPage.php