From 70d76f20ee127fe7e8e52b2d67e2362283a01f34 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 - 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 Change-Id: I0d50dceb84cd9ad4fe00e0b749ddf7d4ff42348a BUG: 1128721 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/8709 Reviewed-by: Krutika Dhananjay Tested-by: Gluster Build System --- 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