From 7c7fd9039b0d0ba17190677f864c5a22d46ab4d6 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Mon, 20 Apr 2009 12:29:00 -0700 Subject: 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 --- libglusterfsclient/src/libglusterfsclient.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libglusterfsclient') diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index fb9c307b473..ef8e93057b0 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; -- cgit