Skip to content

Commit 808608c

Browse files
committed
corrected mysql_upgrade to always list output for every phase
1 parent c584058 commit 808608c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/mysql_upgrade.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,9 +740,10 @@ static void print_conn_args(const char *tool_name)
740740

741741
static int run_mysqlcheck_upgrade(void)
742742
{
743+
int retch;
743744
verbose("Phase %d/%d: Checking and upgrading tables", phase++, phases_total);
744745
print_conn_args("mysqlcheck");
745-
return run_tool(mysqlcheck_path,
746+
retch= run_tool(mysqlcheck_path,
746747
NULL, /* Send output from mysqlcheck directly to screen */
747748
"--no-defaults",
748749
ds_args.str,
@@ -754,6 +755,9 @@ static int run_mysqlcheck_upgrade(void)
754755
opt_write_binlog ? "--write-binlog" : "--skip-write-binlog",
755756
"2>&1",
756757
NULL);
758+
if (retch || opt_systables_only)
759+
verbose("Phase %d/%d: Skipping 'mysql_fix_privilege_tables'... not needed", phase++, phases_total);
760+
return retch;
757761
}
758762

759763
#define EVENTS_STRUCT_LEN 7000

0 commit comments

Comments
 (0)