mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-26 05:58:16 +00:00
Don't set innodb_lock_wait_timeout in tests because it generates a warning on 5.0 and 5.1 that the tests don't suppress.
This commit is contained in:
11
t/lib/Cxn.t
11
t/lib/Cxn.t
@@ -32,7 +32,16 @@ if ( !$master_dbh ) {
|
||||
my $o = new OptionParser(description => 'Cxn', file => "$trunk/bin/pt-table-checksum");
|
||||
$o->get_specs("$trunk/bin/pt-table-checksum");
|
||||
$o->get_opts();
|
||||
$dp->prop('set-vars', $o->set_vars());
|
||||
|
||||
# In 2.1, these tests did not set innodb_lock_wait_timeout because
|
||||
# it was not a --set-vars default but rather its own option handled
|
||||
# by/in the tool. In 2.2, the var is a --set-vars default, which
|
||||
# means it will cause a warning on 5.0 and 5.1, so we remoe the var
|
||||
# to remove the warning.
|
||||
my $set_vars = $o->set_vars();
|
||||
delete $set_vars->{innodb_lock_wait_timeout};
|
||||
delete $set_vars->{lock_wait_timeout};
|
||||
$dp->prop('set-vars', $set_vars);
|
||||
|
||||
sub make_cxn {
|
||||
my (%args) = @_;
|
||||
|
@@ -47,7 +47,16 @@ elsif ( $db_flavor !~ /XtraDB Cluster/ ) {
|
||||
my $o = new OptionParser(description => 'Cxn');
|
||||
$o->get_specs("$trunk/bin/pt-table-checksum");
|
||||
$o->get_opts();
|
||||
$dp->prop('set-vars', $o->set_vars());
|
||||
|
||||
# In 2.1, these tests did not set innodb_lock_wait_timeout because
|
||||
# it was not a --set-vars default but rather its own option handled
|
||||
# by/in the tool. In 2.2, the var is a --set-vars default, which
|
||||
# means it will cause a warning on 5.0 and 5.1, so we remoe the var
|
||||
# to remove the warning.
|
||||
my $set_vars = $o->set_vars();
|
||||
delete $set_vars->{innodb_lock_wait_timeout};
|
||||
delete $set_vars->{lock_wait_timeout};
|
||||
$dp->prop('set-vars', $set_vars);
|
||||
|
||||
sub make_cxn {
|
||||
my (%args) = @_;
|
||||
|
@@ -44,7 +44,16 @@ my $dp = new DSNParser(opts=>$dsn_opts);
|
||||
my $o = new OptionParser(description => 'Cxn');
|
||||
$o->get_specs("$trunk/bin/pt-table-checksum");
|
||||
$o->get_opts();
|
||||
$dp->prop('set-vars', $o->set_vars());
|
||||
|
||||
# In 2.1, these tests did not set innodb_lock_wait_timeout because
|
||||
# it was not a --set-vars default but rather its own option handled
|
||||
# by/in the tool. In 2.2, the var is a --set-vars default, which
|
||||
# means it will cause a warning on 5.0 and 5.1, so we remoe the var
|
||||
# to remove the warning.
|
||||
my $set_vars = $o->set_vars();
|
||||
delete $set_vars->{innodb_lock_wait_timeout};
|
||||
delete $set_vars->{lock_wait_timeout};
|
||||
$dp->prop('set-vars', $set_vars);
|
||||
|
||||
my $r1 = new Cxn(dsn=>{n=>'slave1'}, dbh=>1, DSNParser=>$dp, OptionParser=>$o);
|
||||
my $r2 = new Cxn(dsn=>{n=>'slave2'}, dbh=>2, DSNParser=>$dp, OptionParser=>$o);
|
||||
|
Reference in New Issue
Block a user