From 84c8cc9c5936a2a7539f343c180f06312c8f6d39 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Wed, 14 Oct 2015 14:14:51 +0530 Subject: cluster/afr: Entry self-heal performance enhancements Change-Id: I52da41dff5619492b656c2217f4716a6cdadebe0 BUG: 1269461 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/12442 Reviewed-by: Pranith Kumar Karampuri NetBSD-regression: NetBSD Build System Smoke: Gluster Build System CentOS-regression: Gluster Build System --- xlators/cluster/afr/src/afr.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'xlators/cluster/afr/src/afr.h') diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index 0a872a98284..f16f9b4b4ac 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -139,6 +139,7 @@ typedef struct _afr_private { void *pump_private; gf_boolean_t use_afr_in_pump; char *locking_scheme; + gf_boolean_t esh_granular; } afr_private_t; @@ -755,6 +756,8 @@ typedef struct _afr_local { /* For client side background heals. */ struct list_head healer; call_frame_t *heal_frame; + + gf_boolean_t need_full_crawl; } afr_local_t; @@ -789,6 +792,14 @@ typedef struct afr_read_subvol_args { uuid_t gfid; } afr_read_subvol_args_t; +typedef struct afr_granular_esh_args { + fd_t *heal_fd; + xlator_t *xl; + call_frame_t *frame; + gf_boolean_t mismatch; /* flag to represent occurrence of type/gfid + mismatch */ +} afr_granular_esh_args_t; + /* did a call fail due to a child failing? */ #define child_went_down(op_ret, op_errno) (((op_ret) < 0) && \ ((op_errno == ENOTCONN) || \ -- cgit