this profiling section is nearly identical to our already verbose Database::open...
authorDomas Mituzas <midom@users.mediawiki.org>
Wed, 9 Jan 2008 23:23:53 +0000 (23:23 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Wed, 9 Jan 2008 23:23:53 +0000 (23:23 +0000)
includes/LoadBalancer.php

index 28f7a78..b10c2a5 100644 (file)
@@ -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;
        }