Index: branches/wmf/1.16wmf4/includes/db/Database.php |
— | — | @@ -527,7 +527,10 @@ |
528 | 528 | $sqlx = strtr( $sqlx, "\t\n", ' ' ); |
529 | 529 | global $wgRequestTime; |
530 | 530 | $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 | + } |
532 | 535 | $ret = $this->doQuery( $commentedSql ); |
533 | 536 | } else { |
534 | 537 | wfDebug( "Failed\n" ); |