Commit aaf16411 authored by unknown's avatar unknown

Warn that --log-slave-updates is used without --log-bin and disabled (WL#998)


sql/mysqld.cc:
  Warn that --log-slave-updates is used without --log-bin and disabled.
parent 6c3a2a10
...@@ -2322,6 +2322,12 @@ The server will not act as a slave."); ...@@ -2322,6 +2322,12 @@ The server will not act as a slave.");
opt_binlog_index_name,LOG_BIN); opt_binlog_index_name,LOG_BIN);
using_update_log=1; using_update_log=1;
} }
else if (opt_log_slave_updates)
{
sql_print_error("\
Warning: you need to use --log-bin to make --log-slave-updates work. \
Now disabling --log-slave-updates.");
}
if (opt_bootstrap) if (opt_bootstrap)
{ {
......
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