Use "sql_print_error" instead of "sql_print_warning" to get a better

error message in the logs before shutting down the server
parent ea49384d
...@@ -3153,14 +3153,14 @@ with --log-bin instead."); ...@@ -3153,14 +3153,14 @@ with --log-bin instead.");
} }
if (opt_log_slave_updates && !opt_bin_log) if (opt_log_slave_updates && !opt_bin_log)
{ {
sql_print_warning("You need to use --log-bin to make " sql_print_error("You need to use --log-bin to make "
"--log-slave-updates work."); "--log-slave-updates work.");
unireg_abort(1); unireg_abort(1);
} }
if (!opt_bin_log && (global_system_variables.binlog_format != BINLOG_FORMAT_UNSPEC)) if (!opt_bin_log && (global_system_variables.binlog_format != BINLOG_FORMAT_UNSPEC))
{ {
sql_print_warning("You need to use --log-bin to make " sql_print_error("You need to use --log-bin to make "
"--binlog-format work."); "--binlog-format work.");
unireg_abort(1); unireg_abort(1);
} }
......
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