diff options
Diffstat (limited to 'xlators/protocol/client/src/client.c')
| -rw-r--r-- | xlators/protocol/client/src/client.c | 16 | 
1 files changed, 2 insertions, 14 deletions
diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c index ccb26dd76aa..2e9fb4cb8a7 100644 --- a/xlators/protocol/client/src/client.c +++ b/xlators/protocol/client/src/client.c @@ -229,8 +229,6 @@ client_submit_request (xlator_t *this, void *req, call_frame_t *frame,          struct iobref  *new_iobref = NULL;          ssize_t         xdr_size   = 0;          struct rpc_req  rpcreq     = {0, }; -        uint64_t        ngroups    = 0; -        uint64_t        gid        = 0;          GF_VALIDATE_OR_GOTO ("client", this, out);          GF_VALIDATE_OR_GOTO (this->name, prog, out); @@ -301,14 +299,11 @@ client_submit_request (xlator_t *this, void *req, call_frame_t *frame,          /* do not send all groups if they are resolved server-side */          if (!conf->send_gids) { -                /* copy some values for restoring later */ -                ngroups = frame->root->ngrps; -                frame->root->ngrps = 1; -                if (ngroups <= SMALL_GROUP_COUNT) { -                        gid = frame->root->groups_small[0]; +                if (frame->root->ngrps <= SMALL_GROUP_COUNT) {                          frame->root->groups_small[0] = frame->root->gid;                          frame->root->groups = frame->root->groups_small;                  } +                frame->root->ngrps = 1;          }          /* Send the msg */ @@ -320,13 +315,6 @@ client_submit_request (xlator_t *this, void *req, call_frame_t *frame,                  gf_msg_debug (this->name, 0, "rpc_clnt_submit failed");          } -        if (!conf->send_gids) { -                /* restore previous values */ -                frame->root->ngrps = ngroups; -                if (ngroups <= SMALL_GROUP_COUNT) -                        frame->root->groups_small[0] = gid; -        } -          ret = 0;          if (new_iobref)  | 
