diff options
author | Anuradha Talur <atalur@redhat.com> | 2015-11-12 19:45:10 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-11-30 20:24:05 -0800 |
commit | f2c52ae206f309ec636a299a76849c843c8ab83d (patch) | |
tree | 199509d590bb1c2e2df71a7f06853d001217176d /xlators/cluster/afr/src/afr.h | |
parent | 0441e50959e9305c5bc4d0af0576593f8755730e (diff) |
cluster/afr : Readdirp performance enhancement
Things done :
1) during lookup and inode_refresh as part of read_txn,
request is sent to detect if heal is required or not.
2) If heal is required, be conservative in setting the
readdirp entry inodes to NULL, otherwise don't be.
3) Self-heal-daemon now crawls both indices/xattrop
and indices/dirty directory while healing.
Change-Id: Ic4a4da63fb7e0726eab5f341a200859b29cf7eb7
BUG: 1250803
Signed-off-by: Anuradha Talur <atalur@redhat.com>
Reviewed-on: http://review.gluster.org/12507
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr.h')
-rw-r--r-- | xlators/cluster/afr/src/afr.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index 28147e00579..c78163506e8 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -127,6 +127,7 @@ typedef struct _afr_private { gf_boolean_t use_afr_in_pump; gf_boolean_t consistent_metadata; uint64_t spb_choice_timeout; + gf_boolean_t need_heal; } afr_private_t; @@ -268,6 +269,8 @@ struct afr_reply { /* For rchecksum */ uint8_t checksum[MD5_DIGEST_LENGTH]; gf_boolean_t buf_has_zeroes; + /* For lookup */ + int8_t need_heal; }; typedef enum { @@ -1083,4 +1086,10 @@ afr_spb_choice_timeout_cancel (xlator_t *this, inode_t *inode); int afr_set_split_brain_choice (int ret, call_frame_t *frame, void *opaque); + +gf_boolean_t +afr_get_need_heal (xlator_t *this); + +void +afr_set_need_heal (xlator_t *this, afr_local_t *local); #endif /* __AFR_H__ */ |