Added readAffinity flag to FileBackendMultiWrite
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 19 Sep 2015 23:05:37 +0000 (16:05 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 20 Sep 2015 19:25:43 +0000 (19:25 +0000)
commitbd6ec3bc78d6321e1a248eaee70b1ac541ed957a
tree49a51a5735044a6730c75648bf1cd56589491bb0
parent7e0dfac5ef9c0e80f1d03eba10f435ee73a322ad
Added readAffinity flag to FileBackendMultiWrite

* A backend with this set (normally 1) will be used for
  non-latest reads. This can be used to prefer a local,
  replicated, backend instead of one farther away (for
  multi-DC setups)
* Note that listings still come from the master always.

Bug: T112708
Change-Id: Ic4bf4ba5a2c9ef78abd11dbd0d4b48c73cad6923
includes/filebackend/FileBackendMultiWrite.php