diff options
author | Ravishankar N <ravishankar@redhat.com> | 2016-09-23 15:16:46 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2016-09-23 07:45:25 -0700 |
commit | f6a3c541941df6fd19ef57185aca5c4bcec2dec3 (patch) | |
tree | 83cfcf93efde25e63d379eb17eb4e1ca7de81e3f /xlators/cluster/afr/src/afr-self-heal-data.c | |
parent | 85f7a86730db229ce264f43d224465a76202d270 (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-data.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-data.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c index 4becfb835e8..fbbbd192323 100644 --- a/xlators/cluster/afr/src/afr-self-heal-data.c +++ b/xlators/cluster/afr/src/afr-self-heal-data.c @@ -14,6 +14,7 @@ #include "byte-order.h" #include "protocol-common.h" #include "afr-messages.h" +#include "events.h" enum { AFR_SELFHEAL_DATA_FULL = 0, @@ -597,8 +598,11 @@ __afr_selfheal_data_finalize_source (call_frame_t *frame, xlator_t *this, healed_sinks, locked_on, replies, AFR_DATA_TRANSACTION); - if (source < 0) + if (source < 0) { + gf_event (EVENT_AFR_SPLIT_BRAIN, "subvol=%s;type=data;" + "file=%s", this->name, uuid_utoa(inode->gfid)); return -EIO; + } return source; } |