Merge "rdbms: update wasQueryTimeout() for DatabaseMysqlBase"

This commit is contained in:
jenkins-bot 2019-03-22 00:41:00 +00:00 committed by Gerrit Code Review
commit 3c3948a6f2

View file

@ -486,7 +486,9 @@ abstract class DatabaseMysqlBase extends Database {
abstract protected function mysqlError( $conn = null );
protected function wasQueryTimeout( $error, $errno ) {
return $errno == 2062;
// https://dev.mysql.com/doc/refman/8.0/en/client-error-reference.html
// https://phabricator.wikimedia.org/T170638
return in_array( $errno, [ 2062, 3024 ] );
}
public function replace( $table, $uniqueIndexes, $rows, $fname = __METHOD__ ) {