diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
commit | 370e83bb0dfd0c70de268c93bf07ad5ee0897192 (patch) | |
tree | 491674f4c242e4d6ba0d04eafa305174c35a3391 /includes/ExternalStoreDB.php | |
parent | f4debf0f12d0524d2b2427c55ea3f16b680fad97 (diff) |
Update auf 1.13.0
Diffstat (limited to 'includes/ExternalStoreDB.php')
-rw-r--r-- | includes/ExternalStoreDB.php | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/includes/ExternalStoreDB.php b/includes/ExternalStoreDB.php index f9046f74..549412d1 100644 --- a/includes/ExternalStoreDB.php +++ b/includes/ExternalStoreDB.php @@ -1,12 +1,4 @@ <?php -/** - * - * - * DB accessable external objects - * - */ - - /** * External database storage will use one (or more) separate connection pools @@ -28,16 +20,15 @@ $wgExternalLoadBalancers = array(); global $wgExternalBlobCache; $wgExternalBlobCache = array(); +/** + * DB accessable external objects + * @ingroup ExternalStorage + */ class ExternalStoreDB { /** @todo Document.*/ function &getLoadBalancer( $cluster ) { - global $wgExternalServers, $wgExternalLoadBalancers; - if ( !array_key_exists( $cluster, $wgExternalLoadBalancers ) ) { - $wgExternalLoadBalancers[$cluster] = LoadBalancer::newFromParams( $wgExternalServers[$cluster] ); - } - $wgExternalLoadBalancers[$cluster]->allowLagged(true); - return $wgExternalLoadBalancers[$cluster]; + return wfGetLBFactory()->getExternalLB( $cluster ); } /** @todo Document.*/ @@ -144,4 +135,3 @@ class ExternalStoreDB { return "DB://$cluster/$id"; } } - |