summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
authorDan Lambright <dlambrig@redhat.com>2015-11-14 14:35:26 -0500
committerDan Lambright <dlambrig@redhat.com>2015-11-17 04:18:17 -0800
commitdcd1ff344d242f64f3a5c579df97a050736e6633 (patch)
tree140a70be4ec14cec7246481336e3cc75ec46fea1 /xlators/mgmt/glusterd/src
parent38bfd4e43c42cbf2a8591b546b808c6ec811995f (diff)
cluster/tier make cache mode default for tiered volumes
The default mode for tiered volumes must be cache. The current test mode was for engineering and should ordinarily not be used by customers. Change-Id: I20583f54a9269ce75daade645be18ab8575b0b9b BUG: 1282076 Signed-off-by: Dan Lambright <dlambrig@redhat.com> Reviewed-on: http://review.gluster.org/12581 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: mohammed rafi kc <rkavunga@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-brick-ops.c3
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-set.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
index 67119a9..0421985 100644
--- a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
@@ -2234,6 +2234,9 @@ glusterd_op_perform_attach_tier (dict_t *dict,
if (!ret)
ret = dict_set_str (volinfo->dict, "features.ctr-enabled", "on");
+ if (!ret)
+ ret = dict_set_str (volinfo->dict, "cluster.tier-mode", "cache");
+
return ret;
}
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
index e3110b06..6535245 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
@@ -2068,7 +2068,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
{ .key = "cluster.tier-mode",
.voltype = "cluster/tier",
.option = "tier-mode",
- .value = "test",
+ .value = "cache",
.op_version = GD_OP_VERSION_3_7_6,
.flags = OPT_FLAG_CLIENT_OPT,
.validate_fn = validate_tier,