From a5534cc60911ca914111710e9faa3376b198c8e3 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 23 Jul 2010 06:51:05 +0000 Subject: cluster/afr: ignore errno from offline nodes during self-heal Signed-off-by: Pranith Kumar K Signed-off-by: Anand V. Avati BUG: 904 (Error while self-healing directories) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=904 --- xlators/cluster/afr/src/afr-self-heal-common.c | 3 +++ 1 file changed, 3 insertions(+) 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++; -- cgit