summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-common.h
diff options
context:
space:
mode:
authorAnuradha <atalur@redhat.com>2014-06-01 19:14:47 +0530
committerNiels de Vos <ndevos@redhat.com>2014-11-13 01:27:33 -0800
commita91f38ee0f939b0f7e424e9dca14468a00e0d58d (patch)
tree4a1bb4f96f6ecbd353348779bc8d82f926cc15f4 /xlators/cluster/afr/src/afr-self-heal-common.h
parentbe560c6f41ab50f023606f0f8a3de189ee94f583 (diff)
afr : Logging improvement
In case of a split brain, adding the type of split brain that might have occurred. Added a few details to entry-self-heal in self-heal completion status. Change-Id: Ie99e2ecdd8aa5b1c57d7d4515d33a17dfa0c67ad BUG: 1101138 Signed-off-by: Anuradha <atalur@redhat.com> Reviewed-on: http://review.gluster.org/7870 Reviewed-by: Ravishankar N <ravishankar@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-common.h')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-common.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.h b/xlators/cluster/afr/src/afr-self-heal-common.h
index 4732647760d..4c926112dc7 100644
--- a/xlators/cluster/afr/src/afr-self-heal-common.h
+++ b/xlators/cluster/afr/src/afr-self-heal-common.h
@@ -30,7 +30,8 @@ afr_sh_print_pending_matrix (int32_t *pending_matrix[], xlator_t *this);
void
afr_sh_print_split_brain_log (int32_t *pending_matrix[], xlator_t *this,
- const char *loc);
+ const char *loc, afr_spb_state_t mdata,
+ afr_spb_state_t data);
int
afr_build_pending_matrix (char **pending_key, int32_t **pending_matrix,
@@ -141,4 +142,8 @@ afr_log_self_heal_completion_status (afr_local_t *local, gf_loglevel_t logl);
char*
afr_get_pending_matrix_str (int32_t *pending_matrix[], xlator_t *this);
+
+void
+afr_set_sh_info_str (afr_local_t *local, afr_self_heal_t *sh,
+ afr_self_heal_type type, xlator_t *this);
#endif /* __AFR_SELF_HEAL_COMMON_H__ */