Commit bfe2689c authored by Sergey Vojtovich's avatar Sergey Vojtovich

MDEV-8379 - SUSE mariadb patches

Let mysql_upgrade return zero exit status when installation is up to date.
parent 360e597c
...@@ -1061,7 +1061,7 @@ int main(int argc, char **argv) ...@@ -1061,7 +1061,7 @@ int main(int argc, char **argv)
printf("This installation of MySQL is already upgraded to %s, " printf("This installation of MySQL is already upgraded to %s, "
"use --force if you still need to run mysql_upgrade\n", "use --force if you still need to run mysql_upgrade\n",
MYSQL_SERVER_VERSION); MYSQL_SERVER_VERSION);
die(NULL); goto end;
} }
if (opt_version_check && check_version_match()) if (opt_version_check && check_version_match())
...@@ -1084,6 +1084,7 @@ int main(int argc, char **argv) ...@@ -1084,6 +1084,7 @@ int main(int argc, char **argv)
/* Create a file indicating upgrade has been performed */ /* Create a file indicating upgrade has been performed */
create_mysql_upgrade_info_file(); create_mysql_upgrade_info_file();
end:
free_used_memory(); free_used_memory();
my_end(my_end_arg); my_end(my_end_arg);
exit(0); exit(0);
......
...@@ -14,7 +14,6 @@ file_exists $MYSQLD_DATADIR/mysql_upgrade_info; ...@@ -14,7 +14,6 @@ file_exists $MYSQLD_DATADIR/mysql_upgrade_info;
--echo Run it again - should say already completed --echo Run it again - should say already completed
--replace_result $MYSQL_SERVER_VERSION VERSION --replace_result $MYSQL_SERVER_VERSION VERSION
--error 1
--exec $MYSQL_UPGRADE 2>&1 --exec $MYSQL_UPGRADE 2>&1
# It should have created a file in the MySQL Servers datadir # It should have created a file in the MySQL Servers datadir
......
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