#At file:///home/lsoares/Workspace/mysql-server/bugfix/b42928/6.0-rpl/ based on
revid:alik@stripped
2849 Luis Soares 2009-05-04
BUG#42928: binlog-format setting prevents server from start if binary
logging is disabled
If one sets binlog-format but does NOT enable binary log, server
refuses to start up. The following messages appears in the error log:
090217 12:47:14 [ERROR] You need to use --log-bin to make
--binlog-format work.
090217 12:47:14 [ERROR] Aborting
This patch addresses this by making the server not to bail out if the
binlog-format is set without the log-bin option. Additionally, the
specified binlog-format is stored, in the global system variable
"binlog_format", and a warning is printed instead of an error.
modified:
sql/mysqld.cc
=== modified file 'sql/mysqld.cc'
--- a/sql/mysqld.cc 2009-04-22 22:12:25 +0000
+++ b/sql/mysqld.cc 2009-05-04 10:38:06 +0000
@@ -4027,9 +4027,10 @@ with --log-bin instead.");
{
if (opt_binlog_format_id != BINLOG_FORMAT_UNSPEC)
{
- sql_print_error("You need to use --log-bin to make "
- "--binlog-format work.");
- unireg_abort(1);
+ sql_print_warning("You need to use --log-bin to make "
+ "--binlog-format work.");
+
+ global_system_variables.binlog_format= opt_binlog_format_id;
}
else
{
Attachment: [text/bzr-bundle] bzr/luis.soares@sun.com-20090504103806-kdgvl0uxnplyavnd.bundle