File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -740,9 +740,10 @@ static void print_conn_args(const char *tool_name)
740
740
741
741
static int run_mysqlcheck_upgrade (void )
742
742
{
743
+ int retch ;
743
744
verbose ("Phase %d/%d: Checking and upgrading tables" , phase ++ , phases_total );
744
745
print_conn_args ("mysqlcheck" );
745
- return run_tool (mysqlcheck_path ,
746
+ retch = run_tool (mysqlcheck_path ,
746
747
NULL , /* Send output from mysqlcheck directly to screen */
747
748
"--no-defaults" ,
748
749
ds_args .str ,
@@ -754,6 +755,9 @@ static int run_mysqlcheck_upgrade(void)
754
755
opt_write_binlog ? "--write-binlog" : "--skip-write-binlog" ,
755
756
"2>&1" ,
756
757
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 ;
757
761
}
758
762
759
763
#define EVENTS_STRUCT_LEN 7000
You can’t perform that action at this time.
0 commit comments