1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

mtr: include restart_opts in --verbose-restart

This commit is contained in:
Sergei Golubchik
2019-12-23 21:39:10 +01:00
parent aade6e53d3
commit 9f7fcb9f25

View File

@ -5294,12 +5294,12 @@ sub server_need_restart {
exists $server->{'restart_opts'}) exists $server->{'restart_opts'})
{ {
my $use_dynamic_option_switch= 0; my $use_dynamic_option_switch= 0;
delete $server->{'restart_opts'}; my $restart_opts = delete $server->{'restart_opts'} || [];
if (!$use_dynamic_option_switch) if (!$use_dynamic_option_switch)
{ {
mtr_verbose_restart($server, "running with different options '" . mtr_verbose_restart($server, "running with different options '" .
join(" ", @{$extra_opts}) . "' != '" . join(" ", @{$extra_opts}) . "' != '" .
join(" ", @{$started_opts}) . "'" ); join(" ", @{$started_opts}, @{$restart_opts}) . "'" );
return 1; return 1;
} }