summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c
index 365c54fb5d4..d37c1b25dd8 100644
--- a/xlators/cluster/afr/src/afr-self-heal-common.c
+++ b/xlators/cluster/afr/src/afr-self-heal-common.c
@@ -1176,6 +1176,9 @@ sh_missing_entries_create (call_frame_t *frame, xlator_t *this)
priv = this->private;
for (i = 0; i < priv->child_count; i++) {
+ if (!local->child_up[i])
+ continue;
+
if (sh->child_errno[i]) {
if (sh->child_errno[i] == ENOENT)
enoent_count++;