summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorhari <hgowtham@redhat.com>2016-02-18 16:58:28 +0530
committerJeff Darcy <jdarcy@redhat.com>2016-02-29 03:44:51 -0800
commit69af0676c9e55804338abe26b94138da15385747 (patch)
treeb329c84c20d0115c7fc3f3e4b9ecada781d9bbf6 /xlators/mgmt
parent3f78b6b3dc6376945a1b1a7c4af16103901ab746 (diff)
TIER: avoid reset of ctr-enabled during the issue of gluster v reset
Change-Id: I3f5f29378c8c55cc07a83f5fc1506c4d7e9ac09d BUG: 1309659 Signed-off-by: hari <hgowtham@redhat.com> Reviewed-on: http://review.gluster.org/13470 Smoke: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Dan Lambright <dlambrig@redhat.com> Tested-by: hari gowtham <hari.gowtham005@gmail.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 65ecd31048c..c19da91db41 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -10479,6 +10479,22 @@ glusterd_enable_default_options (glusterd_volinfo_t *volinfo, char *option)
}
}
+ if (!option || !strcmp ("features.ctr-enabled", option)) {
+ if (volinfo->type == GF_CLUSTER_TYPE_TIER) {
+ ret = dict_set_dynstr_with_alloc (volinfo->dict,
+ "features.ctr-enabled", "on");
+ if (ret) {
+ gf_msg (this->name, GF_LOG_ERROR, errno,
+ GD_MSG_DICT_SET_FAILED,
+ "Failed to set option "
+ "'features.ctr-enabled' "
+ "on volume %s",
+ volinfo->volname);
+ goto out;
+ }
+ }
+ }
+
}
out:
return ret;