Commit 9c8c572f authored by Sergei Golubchik's avatar Sergei Golubchik

per-file combinations

parent e06c1c70
...@@ -165,6 +165,8 @@ sub value { ...@@ -165,6 +165,8 @@ sub value {
} }
sub auto { 0 };
# #
# Return value for an option if it exist # Return value for an option if it exist
# #
...@@ -189,6 +191,8 @@ sub new { ...@@ -189,6 +191,8 @@ sub new {
bless My::Config::Group->new($group_name), $class; bless My::Config::Group->new($group_name), $class;
} }
sub auto { 1 };
# #
# Return value for an option in the group, fail if it does not exist # Return value for an option in the group, fail if it does not exist
# #
...@@ -214,6 +218,8 @@ use strict; ...@@ -214,6 +218,8 @@ use strict;
use warnings; use warnings;
use Carp; use Carp;
sub auto { 1 };
sub new { sub new {
my ($class, $group_name)= @_; my ($class, $group_name)= @_;
bless My::Config::Group->new($group_name), $class; bless My::Config::Group->new($group_name), $class;
......
...@@ -37,8 +37,8 @@ sub new { ...@@ -37,8 +37,8 @@ sub new {
sub fullname { sub fullname {
my ($self)= @_; my ($self)= @_;
$self->{name} . (defined $self->{combination} $self->{name} . (defined $self->{combinations}
? " '$self->{combination}'" ? " '" . join(',', sort @{$self->{combinations}}) . "'"
: "") : "")
} }
......
This diff is collapsed.
...@@ -263,6 +263,11 @@ sub mtr_wait_lock_file { ...@@ -263,6 +263,11 @@ sub mtr_wait_lock_file {
return ($waited); return ($waited);
} }
sub uniq(@) {
my %seen = map { $_ => $_ } @_;
values %seen;
}
# Simple functions to start and check timers (have to be actively polled) # Simple functions to start and check timers (have to be actively polled)
# Timer can be "killed" by setting it to 0 # Timer can be "killed" by setting it to 0
......
...@@ -5101,8 +5101,8 @@ sub after_failure ($) { ...@@ -5101,8 +5101,8 @@ sub after_failure ($) {
my $save_dir= "$opt_vardir/log/"; my $save_dir= "$opt_vardir/log/";
$save_dir.= $tinfo->{name}; $save_dir.= $tinfo->{name};
# Add combination name if any # Add combination name if any
$save_dir.= "-$tinfo->{combination}" $save_dir.= '-' . join(',', sort @{$tinfo->{combinations}})
if defined $tinfo->{combination}; if defined $tinfo->{combinations};
# Save savedir path for server # Save savedir path for server
$tinfo->{savedir}= $save_dir; $tinfo->{savedir}= $save_dir;
......
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
# http://dev.mysql.com/doc/refman/5.1/en/sql-syntax-data-definition.html # http://dev.mysql.com/doc/refman/5.1/en/sql-syntax-data-definition.html
# #
source include/master-slave.inc;
#CREATE TEMPORARY TABLE statements are not binlogged in row mode, #CREATE TEMPORARY TABLE statements are not binlogged in row mode,
#So it must be test by itself. #So it must be test by itself.
source include/have_binlog_format_mixed_or_statement.inc; source include/have_binlog_format_mixed_or_statement.inc;
source include/master-slave.inc;
disable_warnings; disable_warnings;
DROP DATABASE IF EXISTS mysqltest; DROP DATABASE IF EXISTS mysqltest;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment