mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-17 01:01:39 +08:00
Update --set-vars and ->prop() in all tools.
This commit is contained in:
@@ -4641,7 +4641,7 @@ sub main {
|
||||
|
||||
my $dp = $o->DSNParser;
|
||||
$dp->prop('dbidriver', $o->get('dbi-driver'));
|
||||
$dp->prop('set-vars', $o->get('set-vars'));
|
||||
$dp->prop('set-vars', $o->set_vars());
|
||||
|
||||
if ( !$o->get('help') ) {
|
||||
my @frames = $o->get('frames') =~ m/(\d+[smhd])/g;
|
||||
@@ -5737,10 +5737,21 @@ Exit if this file exists.
|
||||
|
||||
=item --set-vars
|
||||
|
||||
type: string; default: wait_timeout=10000
|
||||
type: Array
|
||||
|
||||
Set these MySQL variables. Immediately after connecting to MySQL, this string
|
||||
will be appended to SET and executed.
|
||||
Set the MySQL variables in this comma-separated list of C<variable=value> pairs.
|
||||
|
||||
By default, the tool sets:
|
||||
|
||||
=for comment ignore-pt-internal-value
|
||||
MAGIC_set_vars
|
||||
|
||||
wait_timeout=10000
|
||||
|
||||
Variables specified on the command line override these defaults. For
|
||||
example, specifying C<--set-vars wait_timeout=500> overrides the defaultvalue of C<10000>.
|
||||
|
||||
The tool prints a warning and continues if a variable cannot be set.
|
||||
|
||||
=item --skew
|
||||
|
||||
|
||||
Reference in New Issue
Block a user