summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
diff options
context:
space:
mode:
authorDan Lambright <dlambrig@redhat.com>2015-11-14 14:35:26 -0500
committerDan Lambright <dlambrig@redhat.com>2015-11-19 08:48:33 -0800
commite24fb2278bc0b0da88ec8c7b2d873c3e4a864d9d (patch)
treeec77b9838af9b9e043c21a2bf25232025d3e306c /xlators/mgmt/glusterd/src/glusterd-brick-ops.c
parent2810954798cebb20e87dcea592a55e20067c6d41 (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. This is a back port of 12581 > 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> Signed-off-by: Dan Lambright <dlambrig@redhat.com> Change-Id: Ib2629d6d3e9b9374fddb5bc21cf068a1bcd96b9d BUG: 1283288 Reviewed-on: http://review.gluster.org/12647 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Dan Lambright <dlambrig@redhat.com> Tested-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-brick-ops.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-brick-ops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
index a6dc94af06d..15738dfa18a 100644
--- a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
@@ -2229,6 +2229,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;
}