Skip to content

Commit

Permalink
corrected mysql_upgrade to always list output for every phase
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Apr 14, 2015
1 parent c584058 commit 808608c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/mysql_upgrade.c
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,10 @@ static void print_conn_args(const char *tool_name)

static int run_mysqlcheck_upgrade(void)
{
int retch;
verbose("Phase %d/%d: Checking and upgrading tables", phase++, phases_total);
print_conn_args("mysqlcheck");
return run_tool(mysqlcheck_path,
retch= run_tool(mysqlcheck_path,
NULL, /* Send output from mysqlcheck directly to screen */
"--no-defaults",
ds_args.str,
Expand All @@ -754,6 +755,9 @@ static int run_mysqlcheck_upgrade(void)
opt_write_binlog ? "--write-binlog" : "--skip-write-binlog",
"2>&1",
NULL);
if (retch || opt_systables_only)
verbose("Phase %d/%d: Skipping 'mysql_fix_privilege_tables'... not needed", phase++, phases_total);
return retch;
}

#define EVENTS_STRUCT_LEN 7000
Expand Down

0 comments on commit 808608c

Please sign in to comment.