List:Commits« Previous MessageNext Message »
From:Frazer Clement Date:October 2 2009 6:33pm
Subject:bzr commit into mysql-5.1-telco-7.0 branch (frazer:3071) Bug#47548
View as plain text  
#At file:///home/frazer/bzr/mysql-5.1-telco-7.0/

 3071 Frazer Clement	2009-10-02
      Bug#47548 : hostname.cc: ip_to_hostname(): DEBUG_ASSERT err_status must fail
      modified:
        sql/hostname.cc

=== modified file 'sql/hostname.cc'
--- a/sql/hostname.cc	2009-08-11 15:56:39 +0000
+++ b/sql/hostname.cc	2009-10-02 18:32:45 +0000
@@ -375,7 +375,7 @@ bool ip_to_hostname(struct sockaddr_stor
                       "no reverse address mapping.",
                       (const char *) ip_key);
 
-    bool err_status= add_hostname(ip_key, NULL);
+    err_status= add_hostname(ip_key, NULL);
 
     *hostname= NULL;
     *connect_errors= 0; /* New IP added to the cache. */
@@ -430,7 +430,7 @@ bool ip_to_hostname(struct sockaddr_stor
                       (const char *) ip_key,
                       (const char *) hostname_buffer);
 
-    bool err_status= add_hostname(ip_key, NULL);
+    err_status= add_hostname(ip_key, NULL);
 
     *hostname= NULL;
     *connect_errors= 0; /* New IP added to the cache. */
@@ -461,7 +461,7 @@ bool ip_to_hostname(struct sockaddr_stor
       that attempted to connect during the outage) unable to connect
       indefinitely.
     */
-    bool err_status= add_hostname(ip_key, NULL);
+    err_status= add_hostname(ip_key, NULL);
 
     *hostname= NULL;
     *connect_errors= 0; /* New IP added to the cache. */
@@ -485,8 +485,9 @@ bool ip_to_hostname(struct sockaddr_stor
   {
     char ip_buffer[HOST_ENTRY_KEY_SIZE];
 
-    vio_get_normalized_ip_string(addr_info->ai_addr, addr_info->ai_addrlen,
-                                 ip_buffer, sizeof(ip_buffer));
+    err_status=
+      vio_get_normalized_ip_string(addr_info->ai_addr, addr_info->ai_addrlen,
+                                   ip_buffer, sizeof(ip_buffer));
     DBUG_ASSERT(!err_status);
 
     DBUG_PRINT("info", (" - '%s'", (const char*) ip_buffer));
@@ -525,9 +526,10 @@ bool ip_to_hostname(struct sockaddr_stor
     {
       char ip_buffer[HOST_ENTRY_KEY_SIZE];
 
-      vio_get_normalized_ip_string(addr_info->ai_addr, addr_info->ai_addrlen,
-                                   ip_buffer, sizeof(ip_buffer));
-      DBUG_ASSERT(err_status);
+      err_status=
+        vio_get_normalized_ip_string(addr_info->ai_addr, addr_info->ai_addrlen,
+                                     ip_buffer, sizeof(ip_buffer));
+      DBUG_ASSERT(!err_status);
 
       sql_print_information(" - %s\n", (const char *) ip_buffer);
     }

Thread
bzr commit into mysql-5.1-telco-7.0 branch (frazer:3071) Bug#47548Frazer Clement2 Oct