From a1bbbf35cb91e5132b8c46dff0681d24371295a4 Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Tue, 4 Oct 2016 10:10:56 +0530 Subject: afr: fix incorrect debug log in selfheal path 1. While looking at glustershd logs in DEBUG log-level, it was found that all bricks of the replica were printed as local bricks even though they were not. Fixed it. 2. Print the name of the subvol from which the entry was got during index crawl. Change-Id: I08b32e38694c755715e9fe0c0e1dd9212abcfb16 BUG: 1381421 Signed-off-by: Ravishankar N Reviewed-on: http://review.gluster.org/15610 Reviewed-by: Pranith Kumar Karampuri CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System Smoke: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/cluster/afr/src/afr-self-heald.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/cluster/afr') diff --git a/xlators/cluster/afr/src/afr-self-heald.c b/xlators/cluster/afr/src/afr-self-heald.c index 7ccac919769..8a3a5521409 100644 --- a/xlators/cluster/afr/src/afr-self-heald.c +++ b/xlators/cluster/afr/src/afr-self-heald.c @@ -428,8 +428,8 @@ afr_shd_index_heal (xlator_t *subvol, gf_dirent_t *entry, loc_t *parent, if (!priv->shd.enabled) return -EBUSY; - gf_msg_debug (healer->this->name, 0, "got entry: %s", - entry->d_name); + gf_msg_debug (healer->this->name, 0, "got entry: %s from %s", + entry->d_name, priv->children[healer->subvol]->name); ret = gf_uuid_parse (entry->d_name, gfid); if (ret) -- cgit