From 9aa81c15a429dc2817f0149a33b6a9e88ead8110 Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Thu, 1 Jun 2017 14:20:03 +0530 Subject: 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 Reviewed-on: https://review.gluster.org/17436 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Pranith Kumar Karampuri --- xlators/cluster/afr/src/afr-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster/afr/src/afr-common.c') 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); -- cgit