diff options
author | Krutika Dhananjay <kdhananj@redhat.com> | 2015-05-27 19:03:12 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-05-28 19:22:53 -0700 |
commit | 9a1cf9327e5f2bc5afbafec7a3659e92e3a1bc2f (patch) | |
tree | d459e6fab72cc584a89564f4b35de63bdc8cd2d8 | |
parent | 6483ac9b7eea567c8d0d48aa2c1139eedc7a9cd9 (diff) |
cluster/afr: Treat op_ret >= 0 as success in afr_final_errno()
Backport of: http://review.gluster.org/10946
Change-Id: I77e7ec8627846d1d7e3198459ea7b8624b5f450b
BUG: 1225743
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: http://review.gluster.org/10960
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: NetBSD Build System
-rw-r--r-- | xlators/cluster/afr/src/afr-common.c | 2 |
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); |