--source include/master-slave.inc
|
|
--enable_connect_log
|
|
--connection slave
|
|
--echo # Normal anonymous connection -- works (expected -1)
|
select master_pos_wait('master-bin.000001',1000000,1);
|
|
--source include/stop_slave.inc
|
reset slave all;
|
eval change master 'my_slave' to master_port=$MASTER_MYPORT, master_host='127.0.0.1', master_user='root';
|
set default_master_connection = 'my_slave';
|
--source include/start_slave.inc
|
|
--echo # Call without connection name -- works (expected -1)
|
select master_pos_wait('master-bin.000001',1000000,1);
|
|
set default_master_connection = '';
|
|
--echo # Call for non-existing anonymous connection -- works (expected NULL)
|
select master_pos_wait('master-bin.000001',1000000,1);
|
|
--echo # Call with a valid connection name -- hangs
|
select master_pos_wait('master-bin.000001',1000000,1,"my_slave");
|