Update --set-vars and ->prop() in all tools.

This commit is contained in:
Daniel Nichter
2013-03-01 18:53:28 -07:00
parent a8f52fd532
commit 4dacb9805c
21 changed files with 315 additions and 85 deletions

View File

@@ -6112,7 +6112,7 @@ sub main {
$o->get_specs();
$o->get_opts();
my $dp = $o->DSNParser();
$dp->prop('set-vars', $o->get('set-vars'));
$dp->prop('set-vars', $o->set_vars());
$o->set('progress', undef) if $o->get('q');
if ( !$o->got('help') ) {
@@ -7159,10 +7159,21 @@ is no alternative)? MAGIC_view_required_indexes:
=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 --socket