summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2015-09-09 17:25:14 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-09-09 22:07:13 -0700
commitb1f851709c30505cac2b63bc49234ae818559d2d (patch)
tree46d610ece0fe5a18ac94589164874bb9001e0d46
parent3a6e397bccf7ebaf9528617f5615553670211edf (diff)
features/shard: Do not return non-negative status on failure in writev
Change-Id: I5f65c49484e44a05bb7df53c73869f89ad3392e0 BUG: 1261399 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/12140 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
-rw-r--r--xlators/features/shard/src/shard.c2
1 files changed, 1 insertions, 1 deletions
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)