List:Commits« Previous MessageNext Message »
From:Alexander Nozdrin Date:April 27 2012 2:47pm
Subject:bzr push into mysql-5.5 branch (alexander.nozdrin:3811 to 3812) Bug#12762885
View as plain text  
 3812 Alexander Nozdrin	2012-04-27
      Follow-up for Bug#12762885 - 61713: MYSQL WILL NOT BIND TO "LOCALHOST"
      IF LOCALHOST IS BOTH IPV4/IPV6 ENABLED.
      
      The original patch removed default value of the bind-address option.
      So, the default value became NULL. By coincedence NULL resolves
      to 0.0.0.0 and ::, and since the server chooses first IPv4-address, 
      0.0.0.0 is choosen. So, there was no change in the behaviour.
      
      This patch restores default value of the bind-address option to "0.0.0.0".

    modified:
      sql/mysqld.cc
 3811 Yasufumi Kinoshita	2012-04-27 [merge]
      Bug#11758510 (#50723): INNODB CHECK TABLE FATAL SEMAPHORE WAIT TIMEOUT POSSIBLY TOO SHORT FOR BI
      Fixed not to check timeout during the check table.

    modified:
      storage/innobase/dict/dict0load.c
      storage/innobase/handler/ha_innodb.cc
      storage/innobase/include/srv0srv.h
      storage/innobase/sync/sync0arr.c
=== modified file 'sql/mysqld.cc'
--- a/sql/mysqld.cc	2012-04-10 10:45:06 +0000
+++ b/sql/mysqld.cc	2012-04-27 14:42:27 +0000
@@ -1841,6 +1841,9 @@ static void network_init(void)
     struct addrinfo *ai, *a;
     struct addrinfo hints;
 
+    if (!my_bind_addr_str)
+      my_bind_addr_str= (char *) "0.0.0.0";
+
     sql_print_information("Server hostname (bind-address): '%s'; port: %d",
                           my_bind_addr_str, mysqld_port);
 

No bundle (reason: useless for push emails).
Thread
bzr push into mysql-5.5 branch (alexander.nozdrin:3811 to 3812) Bug#12762885Alexander Nozdrin2 May