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-17 04:18:17 -0800
commitdcd1ff344d242f64f3a5c579df97a050736e6633 (patch)
tree140a70be4ec14cec7246481336e3cc75ec46fea1 /xlators/mgmt/glusterd/src/glusterd-brick-ops.c
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/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 67119a9b53b..042198510e1 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;
}