From 46674c5d5caaa183f8ee99efb64ef268eded91ab 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 Backport of: http://review.gluster.org/#/c/12140/ Change-Id: I7c49a083894cead528901ebc0a88fcfa17e53da3 BUG: 1261715 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/12144 Reviewed-by: Pranith Kumar Karampuri Tested-by: Gluster Build System Tested-by: NetBSD Build System --- xlators/features/shard/src/shard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features') diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c index 74d75758f59..b93c5ec14a8 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