summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 a5acead580d..e8a47a6c363 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;
/*