diff options
Diffstat (limited to 'xlators/protocol/client/src')
| -rw-r--r-- | xlators/protocol/client/src/client.c | 2 | ||||
| -rw-r--r-- | xlators/protocol/client/src/client3_1-fops.c | 12 | 
2 files changed, 5 insertions, 9 deletions
diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c index 383f52bc972..c8bbd467206 100644 --- a/xlators/protocol/client/src/client.c +++ b/xlators/protocol/client/src/client.c @@ -96,7 +96,7 @@ client_submit_request (xlator_t *this, void *req, call_frame_t *frame,          }          /* Send the msg */          ret = rpc_clnt_submit (conf->rpc, prog, procnum, cbk, &iov, count, NULL, 0, -                               iobref, frame); +                               iobref, frame, NULL, 0, NULL, 0, NULL);          if (ret == 0) {                  pthread_mutex_lock (&conf->rpc->conn.lock); diff --git a/xlators/protocol/client/src/client3_1-fops.c b/xlators/protocol/client/src/client3_1-fops.c index 136f84bf560..52d5c093a60 100644 --- a/xlators/protocol/client/src/client3_1-fops.c +++ b/xlators/protocol/client/src/client3_1-fops.c @@ -80,7 +80,8 @@ client_submit_vec_request (xlator_t  *this, void *req, call_frame_t  *frame,          }          /* Send the msg */          ret = rpc_clnt_submit (conf->rpc, prog, procnum, cbk, &iov, count, -                               payload, payloadcnt, iobref, frame); +                               payload, payloadcnt, iobref, frame, NULL, 0, +                               NULL, 0, NULL);          if (ret == 0) {                  pthread_mutex_lock (&conf->rpc->conn.lock); @@ -2001,13 +2002,12 @@ client3_1_readv_cbk (struct rpc_req *req, struct iovec *iov, int count,          }          if (rsp.op_ret != -1) { -                iobref = iobref_new (); +                iobref = req->rsp_iobref;                  gf_stat_to_iatt (&rsp.stat, &stat);                  vector.iov_len  = rsp.op_ret;                  if (rsp.op_ret > 0) { -                        vector.iov_base = req->rsp_procpayload->ptr; -                        iobref_add (iobref, req->rsp_procpayload); +                        vector.iov_base = req->rsp[1].iov_base;                  }          }  out: @@ -2015,10 +2015,6 @@ out:                               gf_error_to_errno (rsp.op_errno), &vector, 1,                               &stat, iobref); -        if (iobref) { -                iobref_unref (iobref); -        } -          return 0;  }  | 
