summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRommer <rommer@active.by>2009-03-18 14:32:50 +0200
committerAnand V. Avati <avati@amp.gluster.com>2009-04-03 19:29:30 +0530
commitf235826215205ac626abb0ad475e7a89f7003da5 (patch)
treec9a015d988d7ce56d503d38f865b484b32e99631
parent7a52d4ba1f1f8b68ecd79b4d5409f3b930b4efd4 (diff)
fix broken transport-type unix
fix broken transport-type "unix" however unix transport not working with defined transport.socket.bind-path Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
-rw-r--r--transport/socket/src/name.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/transport/socket/src/name.c b/transport/socket/src/name.c
index b6f68d5bca4..831b9fd439f 100644
--- a/transport/socket/src/name.c
+++ b/transport/socket/src/name.c
@@ -87,7 +87,7 @@ af_unix_client_bind (transport_t *this,
{
data_t *path_data = NULL;
struct sockaddr_un *addr = NULL;
- int32_t ret = -1;
+ int32_t ret = 0;
path_data = dict_get (this->xl->options, "transport.socket.bind-path");
if (path_data) {
@@ -108,6 +108,10 @@ af_unix_client_bind (transport_t *this,
sock, strerror (errno));
goto err;
}
+ } else {
+ gf_log (this->xl->name, GF_LOG_DEBUG,
+ "bind-path not specfied for unix socket, "
+ "letting connect to assign default value");
}
err: