~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to mysql-test/include/ndb_wait_connected.inc

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2013-12-22 10:27:05 UTC
  • Revision ID: package-import@ubuntu.com-20131222102705-mndw7s12mz0szrcn
Tags: upstream-5.5.32
Import upstream version 5.5.32

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
25
 
 
26