summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-data.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-data.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-data.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c
index f85e724..d7c112d 100644
--- a/xlators/cluster/afr/src/afr-self-heal-data.c
+++ b/xlators/cluster/afr/src/afr-self-heal-data.c
@@ -497,6 +497,8 @@ afr_sh_data_fsync (call_frame_t *frame, xlator_t *this)
(void *) (long) i, priv->children[i],
priv->children[i]->fops->fsync,
sh->healing_fd, 1, NULL);
+ if (!--call_count)
+ break;
}
return 0;
@@ -1225,9 +1227,9 @@ afr_sh_data_fstat (call_frame_t *frame, xlator_t *this)
priv->children[child],
priv->children[child]->fops->fstat,
sh->healing_fd, NULL);
- --call_count;
+ if (!--call_count)
+ break;
}
- GF_ASSERT (!call_count);
out:
GF_FREE (fstat_children);
return 0;