summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-common.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-03-30 00:03:20 +0000
committerVijay Bellur <vijay@gluster.com>2011-04-06 10:50:22 -0700
commit99af7219c54b2264ede898fa619125c629519174 (patch)
treef846f87964b7dd19de5188ad9e0d74b810e83507 /xlators/cluster/afr/src/afr-common.c
parenta1a0e929534cb56e3a938229c7f87bfd0f1c17ec (diff)
log gfid mismatches for the same file in cluster xlator lookup
This can help in pin pointing some of the issues resulted in gfid mismatch for the same file, which is harder to find through basic debugging/logging of current codebase. Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@gluster.com> BUG: 2346 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
Diffstat (limited to 'xlators/cluster/afr/src/afr-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c
index 7e54bfe5bd1..4091cc2a269 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -628,6 +628,11 @@ afr_lookup_self_heal_check (xlator_t *this, afr_local_t *local,
local->self_heal.need_data_self_heal = _gf_true;
}
+ if (uuid_compare (buf->ia_gfid, lookup_buf->ia_gfid)) {
+ /* mismatching gfid */
+ gf_log (this->name, GF_LOG_WARNING,
+ "%s: gfid different on subvolume", local->loc.path);
+ }
}