diff options
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; } |