Commit ce4b9985 authored by Magnus Svensson's avatar Magnus Svensson

Instruct mysql_upgrade what tmpdir to use

parent 10348f0f
...@@ -300,6 +300,16 @@ my @mysqlbinlog_rules= ...@@ -300,6 +300,16 @@ my @mysqlbinlog_rules=
); );
#
# Rules to run for [mysql_upgrade] section
# - will be run in order listed here
#
my @mysql_upgrade_rules=
(
{ 'tmpdir' => sub { return shift->{ARGS}->{tmpdir}; } },
);
# #
# Generate a [client.<suffix>] group to be # Generate a [client.<suffix>] group to be
# used for connecting to [mysqld.<suffix>] # used for connecting to [mysqld.<suffix>]
...@@ -606,6 +616,11 @@ sub new_config { ...@@ -606,6 +616,11 @@ sub new_config {
$config->insert('mysqlbinlog'), $config->insert('mysqlbinlog'),
@mysqlbinlog_rules); @mysqlbinlog_rules);
# [mysql_upgrade] need additional settings
$self->run_rules_for_group($config,
$config->insert('mysql_upgrade'),
@mysql_upgrade_rules);
# Additional rules required for [client] # Additional rules required for [client]
$self->run_rules_for_group($config, $self->run_rules_for_group($config,
$config->insert('client'), $config->insert('client'),
......
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