From 26af4e1229106e3d4d311fcfa1646f1ce9f3f271 Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Thu, 2 Apr 2009 03:39:24 -0700 Subject: Print log message when AFR receives CHILD_UP/DOWN notification Signed-off-by: Anand V. Avati --- xlators/cluster/afr/src/afr.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xlators/cluster/afr') 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; /* -- cgit