mirror of
https://github.com/MariaDB/server.git
synced 2026-05-08 08:04:29 +02:00
crazy - for the last week mysqlslap.test was generating 400 sigsegvs
per run, failing ALL mysql_real_connect() calls - nobody noticed, the test always appeared to "pass".
This commit is contained in:
parent
5d40b535c5
commit
da383890ae
1 changed files with 9 additions and 6 deletions
|
|
@ -1086,6 +1086,9 @@ WAIT:
|
||||||
int status, pid;
|
int status, pid;
|
||||||
pid= wait(&status);
|
pid= wait(&status);
|
||||||
DBUG_PRINT("info", ("Parent: child %d status %d", pid, status));
|
DBUG_PRINT("info", ("Parent: child %d status %d", pid, status));
|
||||||
|
if (status != 0)
|
||||||
|
printf("%s: Child %d died with the status %d\n",
|
||||||
|
my_progname, pid, status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -1124,7 +1127,7 @@ run_task(thread_context *con)
|
||||||
my_lock(lock_file, F_RDLCK, 0, F_TO_EOF, MYF(0));
|
my_lock(lock_file, F_RDLCK, 0, F_TO_EOF, MYF(0));
|
||||||
if (!opt_only_print)
|
if (!opt_only_print)
|
||||||
{
|
{
|
||||||
if (!(mysql= mysql_real_connect(NULL, host, user, opt_password,
|
if (!(mysql= mysql_real_connect(mysql, host, user, opt_password,
|
||||||
create_schema_string,
|
create_schema_string,
|
||||||
opt_mysql_port,
|
opt_mysql_port,
|
||||||
opt_mysql_unix_port,
|
opt_mysql_unix_port,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue