summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-04-02 03:39:24 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-04-02 18:12:00 +0530
commit26af4e1229106e3d4d311fcfa1646f1ce9f3f271 (patch)
tree744eca32f1bc33fdcda998d14e7f3f540c5c763f /xlators/cluster
parent522b2bdb540bef4911e0874030d1f9b3003ba104 (diff)
Print log message when AFR receives CHILD_UP/DOWN notification
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/cluster')
-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;
/*