summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-10-25 14:56:36 +0200
committerunknown <msvensson@neptunus.(none)>2006-10-25 14:56:36 +0200
commit7596e12bbe6cb936f06e7d8893d2bad7276b70cb (patch)
treeb6b395a2da414491e91fb859553fa3b05872c90e
parent870ed0c3f5db58c969016fbe6c8492df047f21b5 (diff)
downloadmariadb-git-7596e12bbe6cb936f06e7d8893d2bad7276b70cb.tar.gz
Update the binlog format parse routine to only be avaliable in 5.1 and allow for any binlog_format to be specified
-rwxr-xr-xmysql-test/mysql-test-run.pl19
1 files changed, 8 insertions, 11 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index dc2c4c1a6fa..3e25d6e933c 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -732,20 +732,17 @@ sub command_line_setup () {
$used_binlog_format= "stmt";
if ( $mysql_version_id >= 50100 )
{
- $used_binlog_format= "mixed";
- }
- foreach my $arg ( @opt_extra_mysqld_opt )
- {
- if ( defined mtr_match_substring($arg,"binlog-format=row"))
- {
- $used_binlog_format= "row";
- }
- elsif ( defined mtr_match_substring($arg,"binlog-format=stmt"))
+ $used_binlog_format= "mixed"; # Default value for binlog format
+
+ foreach my $arg ( @opt_extra_mysqld_opt )
{
- $used_binlog_format= "stmt";
+ if ( $arg =~ /binlog-format=(\S+)/ )
+ {
+ $used_binlog_format= $1;
+ }
}
+ mtr_report("Using binlog format '$used_binlog_format'");
}
- mtr_report("Using binlog format '$used_binlog_format'");
# --------------------------------------------------------------------------
# Check if we should speed up tests by trying to run on tmpfs