if ((h= gethostbyname(server->hostname)) == NULL)
{
- return MEMCACHED_HOST_LOCKUP_FAILURE;
+ WATCHPOINT_STRING(server->hostname);
+ WATCHPOINT_STRING(hstrerror(h_errno));
+ return MEMCACHED_HOST_LOOKUP_FAILURE;
}
server->servAddr.sin_family= h->h_addrtype;
rc= unix_socket_connect(ptr, server_key);
break;
}
+
+ if (rc != MEMCACHED_SUCCESS)
+ WATCHPOINT_ERROR(rc);
}
else
{
rc= MEMCACHED_SUCCESS;
if (possible_rc != MEMCACHED_SUCCESS)
+ {
+ WATCHPOINT_ERROR(possible_rc);
rc= MEMCACHED_SOME_ERRORS;
+ }
}
}
LIBMEMCACHED_MEMCACHED_CONNECT_END();