From c9e56fd3dcb8737efc6c523a964da5d5667b043e Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 22 Feb 2011 10:26:00 +0000 Subject: [PATCH] Merge r67177 from 1.16wmf4 --- includes/db/Database.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/db/Database.php b/includes/db/Database.php index 708b0e2b14..d78f4054e9 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -732,7 +732,10 @@ abstract class DatabaseBase implements DatabaseType { $sqlx = strtr( $sqlx, "\t\n", ' ' ); global $wgRequestTime; $elapsed = round( microtime( true ) - $wgRequestTime, 3 ); - wfLogDBError( "Connection lost and reconnected after {$elapsed}s, query: $sqlx\n" ); + if ( $elapsed < 300 ) { + # Not a database error to lose a transaction after a minute or two + wfLogDBError( "Connection lost and reconnected after {$elapsed}s, query: $sqlx\n" ); + } $ret = $this->doQuery( $commentedSql ); } else { wfDebug( "Failed\n" ); -- 2.20.1