~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/extra/rpl_tests/rpl_get_master_version_and_clock.test

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-21 15:31:05 UTC
  • mfrom: (1.1.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20100621153105-pbbz3t6nyrf9t2zq
Tags: upstream-5.1.48
ImportĀ upstreamĀ versionĀ 5.1.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
 
69
69
# Show slave last IO errno
70
70
connection slave;
 
71
--echo Check network error happened here
 
72
# '2013' CR_SERVER_LOST 
 
73
# '2003' CR_CONN_HOST_ERROR 
 
74
# '2002' CR_CONNECTION_ERROR 
 
75
# '2006' CR_SERVER_GONE_ERROR 
 
76
# '1040' ER_CON_COUNT_ERROR 
 
77
# '1053' ER_SERVER_SHUTDOWN
 
78
let $slave_io_errno= 1040, 1053, 2002, 2003, 2006, 2013;
71
79
source include/wait_for_slave_io_error.inc;
72
 
let $last_io_errno= query_get_value("show slave status", Last_IO_Errno, 1);
73
 
--echo Check network error happened here
74
 
if (`SELECT '$last_io_errno' = '2013' || # CR_SERVER_LOST
75
 
            '$last_io_errno' = '2003' || # CR_CONN_HOST_ERROR
76
 
            '$last_io_errno' = '2002' || # CR_CONNECTION_ERROR
77
 
            '$last_io_errno' = '2006' || # CR_SERVER_GONE_ERROR
78
 
            '$last_io_errno' = '1040' || # ER_CON_COUNT_ERROR
79
 
            '$last_io_errno' = '1053'    # ER_SERVER_SHUTDOWN
80
 
            `)
81
 
{
82
 
  --echo NETWORK ERROR
83
 
}
84
80
 
85
81
# deactivate the sync point of get_master_version_and_clock()
86
82
# now to avoid restarting IO-thread to re-enter it.