*/
abstract protected function mysqlError( $conn = null );
+ protected function wasQueryTimeout( $error, $errno ) {
+ return $errno == 2062;
+ }
+
/**
* @param string $table
* @param array $uniqueIndexes
return true;
}
- $this->queryLogger->warning( __METHOD__ . " failed to acquire lock '$lockName'\n" );
+ $this->queryLogger->info( __METHOD__ . " failed to acquire lock '{lockname}'",
+ [ 'lockname' => $lockName ] );
return false;
}