From 0a7f4cfc1c516da573949a9521248744ce97c4e9 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 17 Mar 2009 16:08:10 -0700 Subject: afr data self heal bug fix fixes the issue of corrupting self-healed copy in AFR Signed-off-by: Anand V. Avati --- xlators/storage/posix/src/posix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators/storage/posix/src/posix.c') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 2848dbdc5..50aea0f36 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -1554,8 +1554,8 @@ posix_readv (call_frame_t *frame, xlator_t *this, goto out; } - priv->read_value += size; - priv->interval_read += size; + priv->read_value += op_ret; + priv->interval_read += op_ret; vec.iov_base = buf; vec.iov_len = op_ret; @@ -1590,7 +1590,7 @@ posix_readv (call_frame_t *frame, xlator_t *this, goto out; } - op_ret = 0; + op_ret = vec.iov_len; out: if (op_ret == -1) { frame->root->rsp_refs = NULL; -- cgit