From 1590c153c827dc78b008d1c3a966eec624373dcf Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Wed, 9 Jan 2008 23:23:53 +0000 Subject: [PATCH] this profiling section is nearly identical to our already verbose Database::open and dbconnect ones --- includes/LoadBalancer.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/LoadBalancer.php b/includes/LoadBalancer.php index 28f7a782f5..b10c2a5ebe 100644 --- a/includes/LoadBalancer.php +++ b/includes/LoadBalancer.php @@ -418,9 +418,7 @@ class LoadBalancer { * @access private */ function reallyOpenConnection( &$server ) { - wfProfileIn( __METHOD__ ); if( !is_array( $server ) ) { - wfProfileOut( __METHOD__ ); throw new MWException( 'You must update your load-balancing configuration. See DefaultSettings.php entry for $wgDBservers.' ); } @@ -431,7 +429,6 @@ class LoadBalancer { # Create object $db = new $class( $host, $user, $password, $dbname, 1, $flags ); $db->setLBInfo( $server ); - wfProfileOut( __METHOD__ ); return $db; } -- 2.20.1