Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Minor tewaks in GTID testing
Browse files Browse the repository at this point in the history
  • Loading branch information
datacharmer committed May 9, 2016
1 parent 371f8fe commit 07c7396
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/make_replication_sandbox
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,11 @@ for my $slave (1 .. $msb->{options}{how_many_slaves} ) {
{
$msb->write_to('initialize_slaves', '>>',
qq(, master_use_gtid=current_pos) );
}
}
if ($msb->{options}{gtid})
{
$msb->write_to('initialize_slaves', '>>', ', MASTER_AUTO_POSITION=1');
}
$msb->write_to('initialize_slaves', '>>',
qq(' | $replication_directory/node$slave/use -u root ) );

Expand Down
3 changes: 3 additions & 0 deletions t/replication_gtid.sb.pl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
msg => 'Master GTID is enabled',
});

# When GTID is enabled, the slaves take some time to get the synchronization info.
sleep 3;

ok_sql({
path => "$sandbox_home/$replication_dir/master",
query => 'select @@global.server_uuid',
Expand Down

0 comments on commit 07c7396

Please sign in to comment.