diff options
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r-- | xlators/cluster/afr/src/afr-common.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index bce0af5791a..a1d9148915b 100644 --- a/xlators/cluster/afr/src/afr-common.c +++ b/xlators/cluster/afr/src/afr-common.c @@ -5052,20 +5052,18 @@ __afr_launch_notify_timer(xlator_t *this, afr_private_t *priv) } } -int +static int __get_heard_from_all_status(xlator_t *this) { afr_private_t *priv = this->private; - int heard_from_all = 1; - int i = 0; + int i; for (i = 0; i < priv->child_count; i++) { if (!priv->last_event[i]) { - heard_from_all = 0; - break; + return 0; } } - return heard_from_all; + return 1; } static int |