mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
fa7707addf
- fix test failures that was already there but now are more consistent when the 1 second sleep has been removed from ndb_waiter mysql-test/t/ndb_autodiscover.test: Wait until mysqld has reconnected to ndbd after ndbd has been restarted mysql-test/t/ndb_autodiscover3.test: Wait until mysqld has reconnected to ndbd after ndbd has been restarted mysql-test/include/ndb_wait_connected.inc: Wait until mysqld has reconnected to ndbd after ndbd has been restarted
26 lines
470 B
PHP
26 lines
470 B
PHP
# Check that mysqld has reconnected to ndbd after
|
|
# restart of ndbd
|
|
#
|
|
--disable_query_log
|
|
--disable_result_log
|
|
let $mysql_errno= 1;
|
|
let $counter= 600;
|
|
while ($mysql_errno)
|
|
{
|
|
--error 0,157
|
|
CREATE TABLE ndb_wait_connected (a int primary key);
|
|
if ($mysql_errno)
|
|
{
|
|
if (!$counter)
|
|
{
|
|
die Failed waiting for mysqld to reconnect to ndbd;
|
|
}
|
|
dec $counter;
|
|
--sleep 0.1
|
|
}
|
|
}
|
|
DROP TABLE ndb_wait_connected;
|
|
--enable_query_log
|
|
--enable_result_log
|
|
|
|
|