r67177 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67176‎ | r67177 | r67178 >
Date:05:56, 1 June 2010
Author:midom
Status:deferred
Tags:
Comment:
suppress "connection lost" errors for all the batch work things
Modified paths:
  • /branches/wmf/1.16wmf4/includes/db/Database.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/includes/db/Database.php
@@ -527,7 +527,10 @@
528528 $sqlx = strtr( $sqlx, "\t\n", ' ' );
529529 global $wgRequestTime;
530530 $elapsed = round( microtime(true) - $wgRequestTime, 3 );
531 - wfLogDBError( "Connection lost and reconnected after {$elapsed}s, query: $sqlx\n" );
 531+ if ($elapsed < 300 ) {
 532+ # Not a database error to lose transaction after a minute or two
 533+ wfLogDBError( "Connection lost and reconnected after {$elapsed}s, query: $sqlx\n" );
 534+ }
532535 $ret = $this->doQuery( $commentedSql );
533536 } else {
534537 wfDebug( "Failed\n" );

Follow-up revisions

RevisionCommit summaryAuthorDate
r82596Merge r67177 from 1.16wmf4platonides10:26, 22 February 2011

Status & tagging log