792792 my $path_examples = " $glob_basedir /libmysqld/examples" ;
793793 $exe_mysqltest = mtr_exe_exists(" $path_examples /mysqltest" );
794794 $exe_mysql_client_test =
795- mtr_exe_exists(" $path_examples /mysql_client_test_embedded" );
795+ mtr_exe_exists(" $path_examples /mysql_client_test_embedded" ,
796+ " /usr/bin/false" );
796797 }
797798 else
798799 {
799800 $exe_mysqltest = mtr_exe_exists(" $path_client_bindir /mysqltest" );
800801 $exe_mysql_client_test =
801- mtr_exe_exists(" $glob_basedir /tests/mysql_client_test" );
802+ mtr_exe_exists(" $glob_basedir /tests/mysql_client_test" ,
803+ " /usr/bin/false" );
802804 }
803805 $exe_mysqldump = mtr_exe_exists(" $path_client_bindir /mysqldump" );
804806 $exe_mysqlshow = mtr_exe_exists(" $path_client_bindir /mysqlshow" );
820822 $exe_mysqladmin = mtr_exe_exists(" $path_client_bindir /mysqladmin" );
821823 $exe_mysql = mtr_exe_exists(" $path_client_bindir /mysql" );
822824 $exe_mysql_fix_system_tables =
823- mtr_script_exists(" $path_client_bindir /mysql_fix_privilege_tables" );
825+ mtr_script_exists(" $path_client_bindir /mysql_fix_privilege_tables" ,
826+ " $glob_basedir /scripts/mysql_fix_privilege_tables" );
824827
825828 $path_language = mtr_path_exists(" $glob_basedir /share/mysql/english/" ,
826829 " $glob_basedir /share/english/" );
834837 $exe_mysqltest = mtr_exe_exists(" $path_client_bindir /mysqltest_embedded" );
835838 $exe_mysql_client_test =
836839 mtr_exe_exists(" $glob_basedir /tests/mysql_client_test_embedded" ,
837- " $path_client_bindir /mysql_client_test_embedded" );
840+ " $path_client_bindir /mysql_client_test_embedded" ,
841+ " /usr/bin/false" );
838842 }
839843 else
840844 {
841845 $exe_mysqltest = mtr_exe_exists(" $path_client_bindir /mysqltest" );
842846 $exe_mysql_client_test =
843- mtr_exe_exists(" $path_client_bindir /mysql_client_test" );
847+ mtr_exe_exists(" $path_client_bindir /mysql_client_test" ,
848+ " /usr/bin/false" ); # FIXME temporary
844849 }
845850
846851 $path_ndb_tools_dir = " $glob_basedir /bin" ;
@@ -1552,17 +1557,17 @@ ($$)
15521557 $tname ne " rpl_crash_binlog_ib_3b" )
15531558 {
15541559 # FIXME we really want separate dir for binlogs
1555- foreach my $bin ( glob (" $opt_vardir /log/master*-bin. *" ) )
1560+ foreach my $bin ( glob (" $opt_vardir /log/master*-bin*" ) )
15561561 {
15571562 unlink ($bin );
15581563 }
15591564 }
15601565
15611566 # Remove old master.info and relay-log.info files
1562- unlink (" $opt_vardir / master-data /master.info" );
1563- unlink (" $opt_vardir / master-data /relay-log.info" );
1564- unlink (" $opt_vardir /master1-data /master.info" );
1565- unlink (" $opt_vardir /master1-data /relay-log.info" );
1567+ unlink (" $master ->[0]->{'path_myddir'} /master.info" );
1568+ unlink (" $master ->[0]->{'path_myddir'} /relay-log.info" );
1569+ unlink (" $master ->[1]->{'path_myddir'} /master.info" );
1570+ unlink (" $master ->[1]->{'path_myddir'} /relay-log.info" );
15661571
15671572 # Run master initialization shell script if one exists
15681573 if ( $init_script )
@@ -1589,13 +1594,13 @@ ($$)
15891594 $tname ne " rpl_crash_binlog_ib_3b" )
15901595 {
15911596 # FIXME we really want separate dir for binlogs
1592- foreach my $bin ( glob (" $opt_vardir /log/slave*-bin. *" ) )
1597+ foreach my $bin ( glob (" $opt_vardir /log/slave*-bin*" ) )
15931598 {
15941599 unlink ($bin );
15951600 }
15961601 # FIXME really master?!
1597- unlink (" $opt_vardir / slave-data /master.info" );
1598- unlink (" $opt_vardir / slave-data /relay-log.info" );
1602+ unlink (" $slave ->[0]->{'path_myddir'} /master.info" );
1603+ unlink (" $slave ->[0]->{'path_myddir'} /relay-log.info" );
15991604 }
16001605
16011606 # Run slave initialization shell script if one exists
@@ -1609,8 +1614,10 @@ ($$)
16091614 }
16101615 }
16111616
1612- ` rm -f $opt_vardir /slave-data/log.*` ;
1613- # unlink("$opt_vardir/slave-data/log.*");
1617+ foreach my $bin ( glob (" $slave ->[0]->{'path_myddir'}/log.*" ) )
1618+ {
1619+ unlink ($bin );
1620+ }
16141621}
16151622
16161623sub mysqld_arguments ($$$$$) {
@@ -1656,7 +1663,8 @@ ($$$$$)
16561663
16571664 if ( $type eq ' master' )
16581665 {
1659- mtr_add_arg($args , " %s --log-bin=%s /log/master-bin" , $prefix , $opt_vardir );
1666+ mtr_add_arg($args , " %s --log-bin=%s /log/master-bin%s " , $prefix ,
1667+ $opt_vardir , $sidx );
16601668 mtr_add_arg($args , " %s --pid-file=%s " , $prefix ,
16611669 $master -> [$idx ]-> {' path_mypid' });
16621670 mtr_add_arg($args , " %s --port=%d " , $prefix ,
0 commit comments