summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-name.c
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2016-09-23 15:16:46 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-09-23 07:45:25 -0700
commitf6a3c541941df6fd19ef57185aca5c4bcec2dec3 (patch)
tree83cfcf93efde25e63d379eb17eb4e1ca7de81e3f /xlators/cluster/afr/src/afr-self-heal-name.c
parent85f7a86730db229ce264f43d224465a76202d270 (diff)
afr: Modifications to afr events
Modified afr event message to add a 'type' key as detailed in the BZ. Also added events for data and metadata split-brain. Change-Id: I8156674b4b6a501499fc10fd68e05115fdaef3e4 BUG: 1378072 Signed-off-by: Ravishankar N <ravishankar@redhat.com> Reviewed-on: http://review.gluster.org/15550 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-name.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-name.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-name.c b/xlators/cluster/afr/src/afr-self-heal-name.c
index a0ee7e0419f..ebeb698996b 100644
--- a/xlators/cluster/afr/src/afr-self-heal-name.c
+++ b/xlators/cluster/afr/src/afr-self-heal-name.c
@@ -306,7 +306,7 @@ afr_selfheal_name_type_mismatch_check (xlator_t *this, struct afr_reply *replies
gf_inode_type_to_str (inode_type),
priv->children[type_idx]->name);
gf_event (EVENT_AFR_SPLIT_BRAIN,
- "subvol=%s;msg=file type mismatch;"
+ "subvol=%s;type=file;"
"file=<gfid:%s>/%s;count=2;"
"child-%d=%s;type-%d=%s;child-%d=%s;"
"type-%d=%s", this->name,
@@ -368,7 +368,7 @@ afr_selfheal_name_gfid_mismatch_check (xlator_t *this, struct afr_reply *replies
uuid_utoa_r (gfid, g2),
priv->children[gfid_idx_iter]->name);
gf_event (EVENT_AFR_SPLIT_BRAIN,
- "subvol=%s;msg=gfid mismatch;"
+ "subvol=%s;type=gfid;"
"file=<gfid:%s>/%s;count=2;"
"child-%d=%s;gfid-%d=%s;child-%d=%s;"
"gfid-%d=%s", this->name,