Skip to content

Commit

Permalink
MDEV-8379 - SUSE mariadb patches
Browse files Browse the repository at this point in the history
Let mysql_upgrade return zero exit status when installation is up to date.
  • Loading branch information
svoj committed Jul 31, 2015
1 parent 360e597 commit bfe2689
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion client/mysql_upgrade.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ int main(int argc, char **argv)
printf("This installation of MySQL is already upgraded to %s, "
"use --force if you still need to run mysql_upgrade\n",
MYSQL_SERVER_VERSION);
die(NULL);
goto end;
}

if (opt_version_check && check_version_match())
Expand All @@ -1084,6 +1084,7 @@ int main(int argc, char **argv)
/* Create a file indicating upgrade has been performed */
create_mysql_upgrade_info_file();

end:
free_used_memory();
my_end(my_end_arg);
exit(0);
Expand Down
1 change: 0 additions & 1 deletion mysql-test/t/mysql_upgrade.test
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ file_exists $MYSQLD_DATADIR/mysql_upgrade_info;

--echo Run it again - should say already completed
--replace_result $MYSQL_SERVER_VERSION VERSION
--error 1
--exec $MYSQL_UPGRADE 2>&1

# It should have created a file in the MySQL Servers datadir
Expand Down

0 comments on commit bfe2689

Please sign in to comment.