You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
470 B

  1. # Check that mysqld has reconnected to ndbd after
  2. # restart of ndbd
  3. #
  4. --disable_query_log
  5. --disable_result_log
  6. let $mysql_errno= 1;
  7. let $counter= 600;
  8. while ($mysql_errno)
  9. {
  10. --error 0,157
  11. CREATE TABLE ndb_wait_connected (a int primary key);
  12. if ($mysql_errno)
  13. {
  14. if (!$counter)
  15. {
  16. die Failed waiting for mysqld to reconnect to ndbd;
  17. }
  18. dec $counter;
  19. --sleep 0.1
  20. }
  21. }
  22. DROP TABLE ndb_wait_connected;
  23. --enable_query_log
  24. --enable_result_log