summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorDan Lambright <dlambrig@redhat.com>2015-10-23 12:10:42 -0400
committerDan Lambright <dlambrig@redhat.com>2015-10-30 05:21:43 -0700
commite13733ab871f34c54a6fc44059b3343a5c2f992a (patch)
treebf7dcc8d0787b60c4fb4557a6fe97c13d2cf0598 /xlators/mgmt
parentee4f6175d1e1e6d6b82631d72c993db5691ad205 (diff)
cluster/tier enable CTR on attach tier
CTR is currently disabled by default, and must be manually enabled for tiering to start. This is an overhead on the administrator and easy to overlook. Enable it automatically when a tier is attached. Change-Id: I0c29de8762faec1bfe6d1376a57eeef3357ad15a BUG: 1274847 Signed-off-by: Dan Lambright <dlambrig@redhat.com> Reviewed-on: http://review.gluster.org/12420 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: mohammed rafi kc <rkavunga@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-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 74e5aba7e1c..31c07e6b230 100644
--- a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
@@ -2204,6 +2204,9 @@ glusterd_op_perform_attach_tier (dict_t *dict,
volinfo->tier_info.hot_type = type;
ret = dict_set_int32 (dict, "type", GF_CLUSTER_TYPE_TIER);
+ if (!ret)
+ ret = dict_set_str (volinfo->dict, "features.ctr-enabled", "on");
+
return ret;
}