1 Jun 2010 07:56
SVN: [67177] branches/wmf/1.16wmf4/includes/db/Database.php
<midom <at> svn.wikimedia.org>
2010-06-01 05:56:26 GMT
2010-06-01 05:56:26 GMT
http://www.mediawiki.org/wiki/Special:Code/MediaWiki/67177 Revision: 67177 Author: midom Date: 2010-06-01 05:56:26 +0000 (Tue, 01 Jun 2010) Log Message: ----------- suppress "connection lost" errors for all the batch work things Modified Paths: -------------- branches/wmf/1.16wmf4/includes/db/Database.php Modified: branches/wmf/1.16wmf4/includes/db/Database.php =================================================================== --- branches/wmf/1.16wmf4/includes/db/Database.php 2010-06-01 05:52:14 UTC (rev 67176) +++ branches/wmf/1.16wmf4/includes/db/Database.php 2010-06-01 05:56:26 UTC (rev 67177) <at> <at> -527,7 +527,10 <at> <at> $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 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" );
RSS Feed