diff options
author | unknown <skozlov/ksm@mysql.com/virtop.localdomain> | 2007-11-24 20:34:30 +0300 |
---|---|---|
committer | unknown <skozlov/ksm@mysql.com/virtop.localdomain> | 2007-11-24 20:34:30 +0300 |
commit | 4f3887f936f5880b2f23dd86dcf823ceb81a167d (patch) | |
tree | 6097da193f4c84c009faa8e85487e18ad685f818 | |
parent | 08d3a357845c79ecd0a7cfa6749528980627f14c (diff) | |
download | mariadb-git-4f3887f936f5880b2f23dd86dcf823ceb81a167d.tar.gz |
WL#3949, Added the optimization of rpl tests if mtr started w/o a combination and --mysqld=--binlog-format=XXX
mysql-test/lib/mtr_cases.pl:
Added the optimization of rpl tests
-rw-r--r-- | mysql-test/lib/mtr_cases.pl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/lib/mtr_cases.pl b/mysql-test/lib/mtr_cases.pl index 46a0ed7e192..d033697ee25 100644 --- a/mysql-test/lib/mtr_cases.pl +++ b/mysql-test/lib/mtr_cases.pl @@ -479,6 +479,17 @@ sub optimize_cases { } } + # ======================================================= + # Use dynamic switching of binlog-format if mtr started + # w/o --mysqld=--binlog-format=xxx and combinations. + # ======================================================= + if (!defined $tinfo->{'combination'} and + $tinfo->{'skip'} ne 1 and + !defined $::used_binlog_format) + { + $test_binlog_format= $tinfo->{'sup_binlog_formats'}->[0]; + } + # Save binlog format for dynamic switching $tinfo->{binlog_format}= $test_binlog_format; } |