List:Commits« Previous MessageNext Message »
From:knielsen Date:January 4 2006 3:39pm
Subject:bk commit into 5.0 tree (knielsen:1.2010)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of knielsen. When knielsen does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2010 06/01/04 16:38:54 knielsen@stripped +2 -0
  EADDRINUSE is not defined on Windows.

  sql/mysqld.cc
    1.527 06/01/04 16:37:31 knielsen@stripped +1 -1
    EADDRINUSE is not defined on Windows.

  include/my_global.h
    1.115 06/01/04 16:37:31 knielsen@stripped +3 -0
    EADDRINUSE is not defined on Windows.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	knielsen
# Host:	rt.int.sifira.dk
# Root:	/usr/local/mysql/mysql-5.0-win-fixes

--- 1.526/sql/mysqld.cc	2005-12-28 20:30:52 +01:00
+++ 1.527/sql/mysqld.cc	2006-01-04 16:37:31 +01:00
@@ -1401,7 +1401,7 @@
     {
       if (((ret= bind(ip_sock, my_reinterpret_cast(struct sockaddr *) (&IPaddr),
                       sizeof(IPaddr))) >= 0) ||
-          (socket_errno != EADDRINUSE) ||
+          (socket_errno != SOCKET_EADDRINUSE) ||
           (waited >= mysqld_port_timeout))
         break;
       sql_print_information("Retrying bind on TCP/IP port %u", mysqld_port);

--- 1.114/include/my_global.h	2005-12-03 20:51:33 +01:00
+++ 1.115/include/my_global.h	2006-01-04 16:37:31 +01:00
@@ -862,6 +862,7 @@
 #define SOCKET_EAGAIN	WSAEINPROGRESS
 #define SOCKET_ETIMEDOUT WSAETIMEDOUT
 #define SOCKET_EWOULDBLOCK WSAEWOULDBLOCK
+#define SOCKET_EADDRINUSE WSAEADDRINUSE
 #define SOCKET_ENFILE	ENFILE
 #define SOCKET_EMFILE	EMFILE
 #elif defined(OS2)
@@ -870,6 +871,7 @@
 #define SOCKET_EAGAIN	SOCEINPROGRESS
 #define SOCKET_ETIMEDOUT SOCKET_EINTR
 #define SOCKET_EWOULDBLOCK SOCEWOULDBLOCK
+#define SOCKET_EADDRINUSE SOCEADDRINUSE
 #define SOCKET_ENFILE	SOCENFILE
 #define SOCKET_EMFILE	SOCEMFILE
 #define closesocket(A)	soclose(A)
@@ -880,6 +882,7 @@
 #define SOCKET_EAGAIN	EAGAIN
 #define SOCKET_ETIMEDOUT SOCKET_EINTR
 #define SOCKET_EWOULDBLOCK EWOULDBLOCK
+#define SOCKET_EADDRINUSE EADDRINUSE
 #define SOCKET_ENFILE	ENFILE
 #define SOCKET_EMFILE	EMFILE
 #endif
Thread
bk commit into 5.0 tree (knielsen:1.2010)knielsen4 Jan