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 <ravishankar@redhat.com>
Reviewed-on: http://review.gluster.org/15610
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
This commit is contained in:
Ravishankar N 2016-10-04 10:10:56 +05:30 committed by Vijay Bellur
parent 9ab5b52dee
commit a1bbbf35cb
2 changed files with 3 additions and 3 deletions

View File

@ -542,7 +542,7 @@ syncop_is_subvol_local (xlator_t *this, loc_t *loc, gf_boolean_t *is_local)
ret = glusterfs_is_local_pathinfo (pathinfo, is_local);
gf_msg_debug (this->name, 0, "subvol %s is %slocal",
this->name, is_local ? "" : "not ");
this->name, *is_local ? "" : "not ");
out:
if (xattr)

View File

@ -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)