Commit 808608cb authored by Daniel Black's avatar Daniel Black

corrected mysql_upgrade to always list output for every phase

parent c584058f
...@@ -740,9 +740,10 @@ static void print_conn_args(const char *tool_name) ...@@ -740,9 +740,10 @@ static void print_conn_args(const char *tool_name)
static int run_mysqlcheck_upgrade(void) static int run_mysqlcheck_upgrade(void)
{ {
int retch;
verbose("Phase %d/%d: Checking and upgrading tables", phase++, phases_total); verbose("Phase %d/%d: Checking and upgrading tables", phase++, phases_total);
print_conn_args("mysqlcheck"); print_conn_args("mysqlcheck");
return run_tool(mysqlcheck_path, retch= run_tool(mysqlcheck_path,
NULL, /* Send output from mysqlcheck directly to screen */ NULL, /* Send output from mysqlcheck directly to screen */
"--no-defaults", "--no-defaults",
ds_args.str, ds_args.str,
...@@ -754,6 +755,9 @@ static int run_mysqlcheck_upgrade(void) ...@@ -754,6 +755,9 @@ static int run_mysqlcheck_upgrade(void)
opt_write_binlog ? "--write-binlog" : "--skip-write-binlog", opt_write_binlog ? "--write-binlog" : "--skip-write-binlog",
"2>&1", "2>&1",
NULL); 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 #define EVENTS_STRUCT_LEN 7000
......
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