From b1f851709c30505cac2b63bc49234ae818559d2d Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Wed, 9 Sep 2015 17:25:14 +0530 Subject: features/shard: Do not return non-negative status on failure in writev Change-Id: I5f65c49484e44a05bb7df53c73869f89ad3392e0 BUG: 1261399 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/12140 Tested-by: NetBSD Build System Reviewed-by: Pranith Kumar Karampuri --- xlators/features/shard/src/shard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c index d76dea7db64..8fc2e88c314 100644 --- a/xlators/features/shard/src/shard.c +++ b/xlators/features/shard/src/shard.c @@ -2955,7 +2955,7 @@ shard_writev_do_cbk (call_frame_t *frame, void *cookie, xlator_t *this, if (call_count == 0) { SHARD_UNSET_ROOT_FS_ID (frame, local); if (local->op_ret < 0) { - SHARD_STACK_UNWIND (writev, frame, local->written_size, + SHARD_STACK_UNWIND (writev, frame, local->op_ret, local->op_errno, NULL, NULL, NULL); } else { if (local->is_write_extending) -- cgit