summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index a6d8a480076..ef922a72bc4 100644
--- a/glusterfsd/src/glusterfsd-mgmt.c
+++ b/glusterfsd/src/glusterfsd-mgmt.c
@@ -523,14 +523,12 @@ glusterfs_mgmt_init (glusterfs_ctx_t *ctx)
if (ret)
goto out;
- rpc = rpc_clnt_new (&rpc_cfg, options, THIS->ctx, THIS->name);
+ rpc = rpc_clnt_new (options, THIS->ctx, THIS->name);
if (!rpc) {
ret = -1;
goto out;
}
- ctx->mgmt = rpc;
-
ret = rpc_clnt_register_notify (rpc, mgmt_rpc_notify, THIS);
if (ret)
goto out;
@@ -539,7 +537,10 @@ glusterfs_mgmt_init (glusterfs_ctx_t *ctx)
if (ret)
goto out;
- rpc_clnt_start (rpc);
+ ret = rpc_clnt_start (rpc);
+ if (ret)
+ goto out;
+ ctx->mgmt = rpc;
out:
return ret;
}