Add WRITE_SYNC flag to BagOStuff::set()/merge()
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 18 Oct 2015 22:57:42 +0000 (15:57 -0700)
committerKrinkle <krinklemail@gmail.com>
Thu, 22 Oct 2015 01:44:09 +0000 (01:44 +0000)
commit5c8ef13306bcad6f07232beccf2c816cd3dcc6f1
tree2c9ec256fd28e2a7ea8ea98575e704340e43f1f9
parenta8590172c8b4898f0dc07203104c92b3835aadee
Add WRITE_SYNC flag to BagOStuff::set()/merge()

* This blocks on writing to all replicas
  and returns false if any failed.
* This is useful if ChronologyProtector is to work across
  domains by having the writes go everywhere so that later
  reads will see them (and be local at the same time).
* Redundant doc comments were also removed.

Change-Id: I9ed098d563c64dba605e7809bc96731da3b3e79d
13 files changed:
includes/libs/objectcache/APCBagOStuff.php
includes/libs/objectcache/BagOStuff.php
includes/libs/objectcache/EmptyBagOStuff.php
includes/libs/objectcache/HashBagOStuff.php
includes/libs/objectcache/ReplicatedBagOStuff.php
includes/libs/objectcache/WinCacheBagOStuff.php
includes/libs/objectcache/XCacheBagOStuff.php
includes/objectcache/MemcachedBagOStuff.php
includes/objectcache/MemcachedPeclBagOStuff.php
includes/objectcache/MultiWriteBagOStuff.php
includes/objectcache/RedisBagOStuff.php
includes/objectcache/SqlBagOStuff.php
tests/phpunit/includes/objectcache/MultiWriteBagOStuffTest.php