diff options
| author | Raghavendra Bhat <raghavendra@redhat.com> | 2012-05-28 12:15:29 +0530 | 
|---|---|---|
| committer | Anand Avati <avati@redhat.com> | 2012-05-29 21:35:41 -0700 | 
| commit | c31447bda4e5e0b8e40689db9635fc5c0aa04136 (patch) | |
| tree | f0757ac684c0b77a16574eb2d7625ab130650b63 | |
| parent | 5f94c61868c420cd9a642d0f758a4a815eb5aae8 (diff) | |
performance/md-cache: make cache timeout reconfigurable via cli
Change-Id: I73685bf73a14435884d3489343bbe71c331eb2a5
BUG: 825638
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Reviewed-on: http://review.gluster.com/3458
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Anand Avati <avati@redhat.com>
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 1 | ||||
| -rw-r--r-- | xlators/performance/md-cache/src/md-cache.c | 6 | 
2 files changed, 4 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index ae38d5b14a5..cae93fbd486 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -154,6 +154,7 @@ static struct volopt_map_entry glusterd_volopt_map[] = {          {"performance.cache-size",               "performance/io-cache",      NULL, NULL, NO_DOC, 0 },          {"performance.cache-size",               "performance/quick-read",    NULL, NULL, NO_DOC, 0 },          {"performance.flush-behind",             "performance/write-behind",  "flush-behind", NULL, DOC, 0}, +        {"performance.md-cache-timeout",         "performance/md-cache",      "md-cache-timeout", NULL, DOC, 0},          {"performance.io-thread-count",          "performance/io-threads",    "thread-count", DOC, 0},          {"performance.high-prio-threads",        "performance/io-threads",    NULL, DOC, 0}, diff --git a/xlators/performance/md-cache/src/md-cache.c b/xlators/performance/md-cache/src/md-cache.c index 356c01f35d4..b3179b5edc3 100644 --- a/xlators/performance/md-cache/src/md-cache.c +++ b/xlators/performance/md-cache/src/md-cache.c @@ -1804,7 +1804,7 @@ reconfigure (xlator_t *this, dict_t *options)  	conf = this->private; -	GF_OPTION_RECONF ("timeout", conf->timeout, options, int32, out); +	GF_OPTION_RECONF ("md-cache-timeout", conf->timeout, options, int32, out);  out:  	return 0;  } @@ -1830,7 +1830,7 @@ init (xlator_t *this)  		return -1;  	} -        GF_OPTION_INIT ("timeout", conf->timeout, int32, out); +        GF_OPTION_INIT ("md-cache-timeout", conf->timeout, int32, out);  out:  	this->private = conf; @@ -1879,7 +1879,7 @@ struct xlator_cbks cbks = {  };  struct volume_options options[] = { -        { .key = {"timeout"}, +        { .key = {"md-cache-timeout"},            .type = GF_OPTION_TYPE_INT,            .min = 0,            .max = 60,  | 
