~skinny.moey/drizzle/branch-rev

« back to all changes in this revision

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

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Include this script to wait until the connection to the
 
3
# server has been restored or timeout occurs
 
4
--disable_result_log
 
5
--disable_query_log
 
6
let $counter= 500;
 
7
while ($mysql_errno)
 
8
{
 
9
  --error 0,2002,2006
 
10
  show status;
 
11
 
 
12
  dec $counter;
 
13
  if (!$counter)
 
14
  {
 
15
    --die Server failed to restart
 
16
  }
 
17
  --sleep 0.1
 
18
}
 
19
--enable_query_log
 
20
--enable_result_log