Updated key WANObjectCache::delete() callers to avoid races
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 24 Sep 2015 22:25:44 +0000 (15:25 -0700)
committerOri.livneh <ori@wikimedia.org>
Sat, 26 Sep 2015 18:02:00 +0000 (18:02 +0000)
commitd02b98b8f3cc37553d7bf79ad46889b3f5ec453d
tree74ae79f8d37051a1ba727049fc20f6dde6d79cb3
parentaa6a581a7a26d8244735f331f8b41eebdc4f6efa
Updated key WANObjectCache::delete() callers to avoid races

* They now issue the delete() write before COMMIT of
  the relevant DB (or immediately if no trx is active)
* This can avoid some stale write race conditions
* Updated the WAN cache delete() docs

Change-Id: Id54887976051120b76528070d5f2ceb357d57897
includes/User.php
includes/UserRightsProxy.php
includes/filerepo/LocalRepo.php
includes/filerepo/file/LocalFile.php
includes/libs/objectcache/WANObjectCache.php