diff options
-rwxr-xr-x | tests/basic/tier/tier.t | 2 | ||||
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-brick-ops.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/basic/tier/tier.t b/tests/basic/tier/tier.t index fedd3bde1c9..0b88ac3bb74 100755 --- a/tests/basic/tier/tier.t +++ b/tests/basic/tier/tier.t @@ -95,8 +95,6 @@ TEST $CLI volume start $V0 TEST $CLI volume set $V0 performance.quick-read off TEST $CLI volume set $V0 performance.io-cache off -TEST $CLI volume set $V0 features.ctr-enabled on - #Not a tier volume TEST ! $CLI volume set $V0 cluster.tier-demote-frequency 4 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; } |