List:Commits« Previous MessageNext Message »
From:Luis Soares Date:May 4 2009 12:38pm
Subject:bzr commit into mysql-6.0-rpl branch (luis.soares:2849) Bug#42928
View as plain text  
#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
Thread
bzr commit into mysql-6.0-rpl branch (luis.soares:2849) Bug#42928Luis Soares4 May 2009
  • Re: bzr commit into mysql-6.0-rpl branch (luis.soares:2849) Bug#42928He Zhenxing5 May 2009