Change DatabaseBase::factory call to Database::factory in LoadBalancer
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 19 Sep 2016 20:00:19 +0000 (13:00 -0700)
committerOri.livneh <ori@wikimedia.org>
Mon, 19 Sep 2016 22:40:26 +0000 (22:40 +0000)
Change-Id: Id4bbc08b5aa913e2e3e47a7873db600fe957c985

includes/libs/rdbms/loadbalancer/LoadBalancer.php

index 75ecd27..2bc378a 100644 (file)
@@ -848,7 +848,7 @@ class LoadBalancer implements ILoadBalancer {
 
                // Create a live connection object
                try {
-                       $db = DatabaseBase::factory( $server['type'], $server );
+                       $db = Database::factory( $server['type'], $server );
                } catch ( DBConnectionError $e ) {
                        // FIXME: This is probably the ugliest thing I have ever done to
                        // PHP. I'm half-expecting it to segfault, just out of disgust. -- TS