summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2017-06-01 14:20:03 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2017-06-05 02:33:56 +0000
commit9aa81c15a429dc2817f0149a33b6a9e88ead8110 (patch)
treeae0eb60fca9ab6f382994102042b84316a3c1e8d /xlators
parent324e81d6fea324d512431a2604086326b8848e9b (diff)
afr: update errno check in afr_inode_refresh_do
Addresses review comment in https://review.gluster.org/#/c/17413 Change-Id: Ic247729e5e92a5bb0148543764e0b30790444004 BUG: 1456582 Signed-off-by: Ravishankar N <ravishankar@redhat.com> Reviewed-on: https://review.gluster.org/17436 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators')
-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 cef7e52a724..6c05374d2b3 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -1372,7 +1372,7 @@ afr_inode_refresh_do (call_frame_t *frame, xlator_t *this)
call_count = local->call_count;
if (!call_count) {
dict_unref (xdata);
- if (local->fd)
+ if (local->fd && AFR_COUNT(local->child_up, priv->child_count))
afr_inode_refresh_done (frame, this, EBADFD);
else
afr_inode_refresh_done (frame, this, ENOTCONN);