diff options
| author | Pranith Kumar K <pkarampu@redhat.com> | 2015-10-07 18:39:42 +0530 | 
|---|---|---|
| committer | Vijay Bellur <vbellur@redhat.com> | 2015-11-24 19:14:36 -0800 | 
| commit | f054680c073d571f9228fabf91fa58416ef86a5f (patch) | |
| tree | 82bbffbc7c177fb973ac21bb50f99196c5270d14 /glusterfsd/src | |
| parent | a058fb06aa8591d61eab8b1b95c74740938263b7 (diff) | |
glusterfsd: Initialize ctx, cmd_args
        Backport of http://review.gluster.org/12311
Change-Id: I9c71ae264665b7bba609c7f86cf42a52a6b47260
BUG: 1269702
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
Reviewed-on: http://review.gluster.org/12312
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'glusterfsd/src')
| -rw-r--r-- | glusterfsd/src/glusterfsd-mgmt.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index d3d79797cbf..e320f76833b 100644 --- a/glusterfsd/src/glusterfsd-mgmt.c +++ b/glusterfsd/src/glusterfsd-mgmt.c @@ -2208,6 +2208,9 @@ mgmt_pmap_signin_cbk (struct rpc_req *req, struct iovec *iov, int count,          char             brick_name[PATH_MAX] = {0,};          frame = myframe; +        ctx = glusterfsd_ctx; +        cmd_args = &ctx->cmd_args; +          if (-1 == req->rpc_status) {                  ret = -1; @@ -2231,9 +2234,6 @@ mgmt_pmap_signin_cbk (struct rpc_req *req, struct iovec *iov, int count,                  goto out;          } -        ctx = glusterfsd_ctx; -        cmd_args = &ctx->cmd_args; -          if (!cmd_args->brick_port2) {                  /* We are done with signin process */                  emancipate_ret = 0;  | 
