mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Instruct mysql_upgrade what tmpdir to use
This commit is contained in:
parent
74cdcba997
commit
10968f73a1
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
# used for connecting to [mysqld.<suffix>]
|
||||
|
@ -606,6 +616,11 @@ sub new_config {
|
|||
$config->insert('mysqlbinlog'),
|
||||
@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]
|
||||
$self->run_rules_for_group($config,
|
||||
$config->insert('client'),
|
||||
|
|
Loading…
Reference in a new issue