summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-common.c
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2010-07-23 06:51:05 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-27 01:19:51 -0700
commita5534cc60911ca914111710e9faa3376b198c8e3 (patch)
tree8f7eb1e2b79376a6c8a77008f6dd847bb4081d55 /xlators/cluster/afr/src/afr-self-heal-common.c
parent931a59e2b9130c6e748f2b7193cd0c2ac5a557bf (diff)
cluster/afr: ignore errno from offline nodes during self-heal
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 904 (Error while self-healing directories) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=904
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c')
-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++;