Multiple servers in one SqlBagOStuff
authorTim Starling <tstarling@wikimedia.org>
Fri, 28 Dec 2012 06:47:46 +0000 (17:47 +1100)
committerTim Starling <tstarling@wikimedia.org>
Fri, 28 Dec 2012 08:13:21 +0000 (19:13 +1100)
commit30d6510f63f8209e7284252904bce8313d52b093
tree96ce8eb915a4a7d7b4248149f4b97714cd81419c
parent1ea3840983d60dfb77b2fa9e1537cf619ac1e7c4
Multiple servers in one SqlBagOStuff

Added a multi-server feature to SqlBagOStuff.

Tests done:
* With both the "shard" and multi-server features enabled and
  $wgAllDBsAreLocalhost, tested getMulti, set, incr, decr, keys,
  garbageCollect, deleteAll. Tested wiki page views with
  $wgMainCacheType set to such a cache.
* Tested connection errors.
* In the plain CACHE_DB configuration, tested wiki page views.

Change-Id: Ifba0d276ef724cc9b33f687bc0adae4637054328
includes/objectcache/SqlBagOStuff.php