diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2012-05-14 16:41:10 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-05-18 19:30:14 -0700 |
commit | 6629bab3bf3c110ce275ad184b5e358272b7593a (patch) | |
tree | 61edb6e2664413f040e3e0de4b2e56bde33c7e52 /xlators/cluster/afr/src/afr-self-heald.c | |
parent | fb5e9b848c2dd358dc23fe56e0e95d3bfd3b9f72 (diff) |
Self-heald: Enable configuring of heal poll timeout
Change-Id: I631e5bf4b3615b553b72e7ac7f490714b3b995f9
BUG: 821395
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Reviewed-on: http://review.gluster.com/3329
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heald.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heald.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heald.c b/xlators/cluster/afr/src/afr-self-heald.c index 3a6295749b5..1a749249056 100644 --- a/xlators/cluster/afr/src/afr-self-heald.c +++ b/xlators/cluster/afr/src/afr-self-heald.c @@ -19,8 +19,6 @@ #include "protocol-common.h" #include "event-history.h" -#define AFR_POLL_TIMEOUT 600 - typedef enum { STOP_CRAWL_ON_SINGLE_SUBVOL = 1 } afr_crawl_flags_t; @@ -602,7 +600,7 @@ afr_poll_self_heal (void *data) } if (shd->enabled && (shd->pos[child] == AFR_POS_LOCAL)) _do_self_heal_on_subvol (this, child, INDEX); - timeout.tv_sec = AFR_POLL_TIMEOUT; + timeout.tv_sec = shd->timeout; timeout.tv_usec = 0; //notify and previous timer should be synchronized. LOCK (&priv->lock); |