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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c
index a5acead58..e8a47a6c3 100644
--- a/xlators/cluster/afr/src/afr.c
+++ b/xlators/cluster/afr/src/afr.c
@@ -1879,6 +1879,9 @@ notify (xlator_t *this, int32_t event,
case GF_EVENT_CHILD_UP:
i = find_child_index (this, data);
+ gf_log (this->name, GF_LOG_NORMAL,
+ "subvolume %s came up", ((xlator_t *) data)->name);
+
child_up[i] = 1;
/*
@@ -1898,6 +1901,9 @@ notify (xlator_t *this, int32_t event,
case GF_EVENT_CHILD_DOWN:
i = find_child_index (this, data);
+ gf_log (this->name, GF_LOG_NORMAL,
+ "subvolume %s went down", ((xlator_t *) data)->name);
+
child_up[i] = 0;
/*