summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-data.c
diff options
context:
space:
mode:
authorAnand V. Avati <avati@amp.gluster.com>2009-04-11 01:52:08 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-04-12 11:33:47 +0530
commitf33f0669efd89216a528bab3694ac4645a7f523b (patch)
tree071210cb6f567a9353af70fbcbef5ce9f2fbf56c /xlators/cluster/afr/src/afr-self-heal-data.c
parente0e6acd6fbdcbd294c89e61cbe108fc1b96a62a8 (diff)
update cluster/afr with new readv writev prototypes
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-data.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-data.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c
index 2c1ceafffa1..0f06e45584e 100644
--- a/xlators/cluster/afr/src/afr-self-heal-data.c
+++ b/xlators/cluster/afr/src/afr-self-heal-data.c
@@ -478,7 +478,8 @@ afr_sh_data_write_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
int
afr_sh_data_read_cbk (call_frame_t *frame, void *cookie,
xlator_t *this, int32_t op_ret, int32_t op_errno,
- struct iovec *vector, int32_t count, struct stat *buf)
+ struct iovec *vector, int32_t count, struct stat *buf,
+ struct iobref *iobref)
{
afr_private_t * priv = NULL;
afr_local_t * local = NULL;
@@ -511,8 +512,6 @@ afr_sh_data_read_cbk (call_frame_t *frame, void *cookie,
offset = sh->offset;
sh->offset += op_ret;
- frame->root->req_refs = frame->root->rsp_refs;
-
if (sh->file_has_holes) {
if (iov_0filled (vector, count) == 0) {
/* the iter function depends on the
@@ -533,7 +532,8 @@ afr_sh_data_read_cbk (call_frame_t *frame, void *cookie,
(void *) (long) i,
priv->children[i],
priv->children[i]->fops->writev,
- sh->healing_fd, vector, count, offset);
+ sh->healing_fd, vector, count, offset,
+ iobref);
if (!--call_count)
break;