1
0
mirror of https://github.com/MariaDB/server.git synced 2025-04-18 21:44:20 +03:00

MDEV-36130: main.mysqldump fails in parallel mysql-import test

Skip printing the error if it is expected — that is, when mariadb-import
is aborting.

In a multithreading scenario, another thread may encounter an error
because the corresponding connection was killed. Do not print this error.
This commit is contained in:
Vladislav Vaintroub 2025-02-20 13:12:23 +01:00
parent 059d06ae07
commit b453123a26

View File

@ -984,6 +984,8 @@ static void fatal_error(const char *format, ...)
static void db_error(MYSQL *mysql)
{
if (aborting)
return;
const char *info= mysql_info(mysql);
auto err= mysql_errno(mysql);
auto err_text = mysql_error(mysql);