Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/175908

Change subject: Log backtraces for DB reconnections
......................................................................

Log backtraces for DB reconnections

Change-Id: Ibe7badde80bf6a44e292b89fe6c085cbda5748e2
---
M includes/db/Database.php
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/08/175908/1

diff --git a/includes/db/Database.php b/includes/db/Database.php
index fc13eeb..4ddb8cb 100644
--- a/includes/db/Database.php
+++ b/includes/db/Database.php
@@ -1028,7 +1028,12 @@
                        $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", '  ' );

-- 
To view, visit https://gerrit.wikimedia.org/r/175908
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibe7badde80bf6a44e292b89fe6c085cbda5748e2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to