diff options
author | Shehjar Tikoo <shehjart@zresearch.com> | 2009-04-20 12:29:00 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-21 12:48:04 +0530 |
commit | 7c7fd9039b0d0ba17190677f864c5a22d46ab4d6 (patch) | |
tree | 5933852365f8fd51f88dba1094f4bbba28a98490 /libglusterfsclient | |
parent | 7bc1747de75d7a65059fbcb191c3776210de1491 (diff) |
libglusterfsclient: Must return size from readv
The line being removed made libgf_client_readv return
a 0 on successfull return when the return should really
be the size of data read.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfsclient')
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index fb9c307b4..ef8e93057 100755 --- a/libglusterfsclient/src/libglusterfsclient.c +++ b/libglusterfsclient/src/libglusterfsclient.c @@ -2237,7 +2237,6 @@ libgf_client_readv (libglusterfs_client_ctx_t *ctx, if (op_ret > 0) { int src = 0, dst = 0; off_t src_offset = 0, dst_offset = 0; - op_ret = 0; while ((size != 0) && (dst < dst_count) && (src < src_count)) { int len = 0, src_len, dst_len; |