mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
MDEV-28209 New mysql_upgrade message on minor-only upgrades is confusing
This commit is contained in:
parent
bca07a6f88
commit
04771ff6b1
2 changed files with 14 additions and 10 deletions
|
|
@ -855,8 +855,7 @@ static int upgrade_already_done(int silent)
|
|||
s= strchr(version, '.');
|
||||
s= strchr(s + 1, '.');
|
||||
|
||||
if (strncmp(upgrade_from_version, version,
|
||||
(size_t)(s - version + 1)))
|
||||
if (strncmp(upgrade_from_version, version, (size_t)(s - version + 1)))
|
||||
{
|
||||
if (calc_server_version(upgrade_from_version) <= MYSQL_VERSION_ID)
|
||||
{
|
||||
|
|
@ -870,9 +869,14 @@ static int upgrade_already_done(int silent)
|
|||
}
|
||||
if (!silent)
|
||||
{
|
||||
verbose("This installation of MariaDB is already upgraded to %s.\n"
|
||||
"There is no need to run mysql_upgrade again for %s.",
|
||||
upgrade_from_version, version);
|
||||
if (strcmp(upgrade_from_version, version))
|
||||
verbose("This installation of MariaDB is already upgraded to %s.\n"
|
||||
"There is no need to run mysql_upgrade again for %s, because "
|
||||
"they're both %.*s.",
|
||||
upgrade_from_version, version, (int)(s - version), version);
|
||||
else
|
||||
verbose("This installation of MariaDB is already upgraded to %s.\n"
|
||||
"There is no need to run mysql_upgrade again.", version);
|
||||
if (!opt_check_upgrade)
|
||||
verbose("You can use --force if you still want to run mysql_upgrade");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue