summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/afr')
-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 365c54fb5..d37c1b25d 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++;