summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2015-05-27 19:03:12 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-05-27 22:36:22 -0700
commit9e1bb640983f72858aeabd793bbb7fc8b5c71b09 (patch)
treef6dd89a42180895f7f59b07925150236cde32d9f /xlators/cluster
parent9a96489e21702bbe7146c9cf6da672917e88864c (diff)
cluster/afr: Treat op_ret >= 0 as success in afr_final_errno()
Change-Id: I7ec29428b7f7ef249014f948a5d616bfb8aaf80d BUG: 1225491 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/10946 Tested-by: NetBSD Build System Reviewed-by: Ravishankar N <ravishankar@redhat.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/afr/src/afr-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c
index 690c7c8c15d..f478fea4daa 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -1624,7 +1624,7 @@ afr_final_errno (afr_local_t *local, afr_private_t *priv)
for (i = 0; i < priv->child_count; i++) {
if (!local->replies[i].valid)
continue;
- if (local->replies[i].op_ret == 0)
+ if (local->replies[i].op_ret >= 0)
continue;
tmp_errno = local->replies[i].op_errno;
op_errno = afr_higher_errno (op_errno, tmp_errno);