Revert/rewrite of r40696.
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 21 Sep 2008 06:42:46 +0000 (06:42 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 21 Sep 2008 06:42:46 +0000 (06:42 +0000)
commitcd8378a5a6b90305c485d0d9d1b668c2db63632a
tree63bf45aa9cb9f295b946a72a7e771c77feba740a
parent913e0d45277f4993790dcfe8ea5efc614d798452
Revert/rewrite of r40696.
* We used to have parameters to ignore errors, but they're obsolete now that we have exceptions. Implemented ES master failover using exceptions instead.
* Changing the number of DB connection attempts from 3 to 2 for some random getConnection() calls is almost pointless, adds lots of ugly formal parameters all of the place, and misses the big picture. It should be 2 by default, based on the original rationale. Any reasonable implementation of failover should have zero timeouts per request, by storing state. Changed the default to 2, or 1 if a long timeout is set.
includes/ExternalStore.php
includes/ExternalStoreDB.php
includes/db/Database.php
includes/db/LoadBalancer.php