Bug: \96T86862
Change-Id: If918904c6c02ea83473dfaf34dfc2787ab610c6f
if ( $user ) {
$this->open( $server, $user, $password, $dbName );
}
-
- $isMaster = !is_null( $this->getLBInfo( 'master' ) );
- $trxProf = $this->getTransactionProfiler();
- $trxProf->recordConnection( $this->mServer, $this->mDBname, $isMaster );
}
/**
$db = $e->db;
}
+ $isMaster = !empty( $server['master'] );
+ $trxProf = Profiler::instance()->getTransactionProfiler();
+ $trxProf->recordConnection( $server['host'], $server['dbname'], $isMaster );
+
$db->setLBInfo( $server );
if ( isset( $server['fakeSlaveLag'] ) ) {
$db->setFakeSlaveLag( $server['fakeSlaveLag'] );