diff options
author | Amar Tumballi <amar@gluster.com> | 2009-03-17 16:08:10 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-03-18 08:13:01 +0530 |
commit | 0a7f4cfc1c516da573949a9521248744ce97c4e9 (patch) | |
tree | dcced78bec1dff433a32aceb8a1952cda0a11327 | |
parent | ac8fe9901b3215c27ef8bc0971bf2bd140bbfcd5 (diff) |
afr data self heal bug fix
fixes the issue of corrupting self-healed copy in AFR
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
-rw-r--r-- | xlators/storage/posix/src/posix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 2848dbdc5f3..50aea0f36de 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; |