summaryrefslogtreecommitdiffstats
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
parent522b2bdb540bef4911e0874030d1f9b3003ba104 (diff)
Print log message when AFR receives CHILD_UP/DOWN notification
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
-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;
/*