From dd80d06145a5911e697b724a44fd4d858e3a9134 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Sat, 13 Sep 2014 12:08:56 +0530 Subject: cluster/afr: Fix spurious metadata self-heals Backport of http://review.gluster.org/8709 - Added logging for metadata and data self-heals which helped in debugging this issue. - Added checks to skip self-heals when no sinks are available to heal BUG: 1145987 Change-Id: Ide03af4f531a1280ec8ad95b627285df4d7bc42d Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/8832 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/cluster/afr/src/afr-self-heal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/cluster/afr/src/afr-self-heal.h') diff --git a/xlators/cluster/afr/src/afr-self-heal.h b/xlators/cluster/afr/src/afr-self-heal.h index 7936659e5e4..c32ec120a50 100644 --- a/xlators/cluster/afr/src/afr-self-heal.h +++ b/xlators/cluster/afr/src/afr-self-heal.h @@ -185,4 +185,8 @@ afr_inode_link (inode_t *inode, struct iatt *iatt); unsigned int afr_success_count (struct afr_reply *replies, unsigned int count); + +void +afr_log_selfheal (uuid_t gfid, xlator_t *this, int ret, char *type, + int source, unsigned char *healed_sinks); #endif /* !_AFR_SELFHEAL_H */ -- cgit