Change-Id: Ibe7badde80bf6a44e292b89fe6c085cbda5748e2
$lastErrno = $this->lastErrno();
if ( $this->ping() ) {
global $wgRequestTime;
+
wfDebug( "Reconnected\n" );
+ $server = $this->getServer();
+ $msg = __METHOD__ . ": lost connection to $server; reconnected";
+ wfDebugLog( 'DBPerformance', "$msg:\n" . wfBacktrace( true ) );
+
$sqlx = $wgDebugDumpSqlLength ? substr( $commentedSql, 0, $wgDebugDumpSqlLength )
: $commentedSql;
$sqlx = strtr( $sqlx, "\t\n", ' ' );