summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShyamsundarR <srangana@redhat.com>2018-09-13 12:50:30 -0400
committerShyamsundar Ranganathan <srangana@redhat.com>2018-09-17 14:26:25 +0000
commitafc9f3b8716e88410ba50a6ce8abbfa186ee7c46 (patch)
treed665769335fe6283de2dc5a8fba968d78972710a
parentcee40c3e3c26ebfb3b98109d154501a5cce61c0d (diff)
glusterd: Update op-version from 4.2 to 5.0
Post changing the max op-version to 4.2, after release 4.1 branching, the decision was to go with increasing release numbers. Thus this needs to change to 5.0. This commit addresses the above change. Fixes: bz#1628668 Change-Id: Ifcc0c6da90fdd51e4eceea40749511110a432cce Signed-off-by: ShyamsundarR <srangana@redhat.com>
-rw-r--r--libglusterfs/src/globals.h12
-rw-r--r--xlators/features/shard/src/shard.c4
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-set.c18
-rw-r--r--xlators/performance/quick-read/src/quick-read.c2
-rw-r--r--xlators/playground/template/src/template.c4
5 files changed, 20 insertions, 20 deletions
diff --git a/libglusterfs/src/globals.h b/libglusterfs/src/globals.h
index 95082f04588..c5595ca7d7d 100644
--- a/libglusterfs/src/globals.h
+++ b/libglusterfs/src/globals.h
@@ -45,11 +45,11 @@
1 /* MIN is the fresh start op-version, mostly \
should not change */
#define GD_OP_VERSION_MAX \
- GD_OP_VERSION_4_2_0 /* MAX VERSION is the maximum \
- count in VME table, should \
- keep changing with \
- introduction of newer \
- versions */
+ GD_OP_VERSION_5_0 /* MAX VERSION is the maximum \
+ count in VME table, should \
+ keep changing with \
+ introduction of newer \
+ versions */
#define GD_OP_VERSION_3_6_0 30600 /* Op-Version for GlusterFS 3.6.0 */
@@ -109,7 +109,7 @@
#define GD_OP_VERSION_4_1_0 40100 /* Op-version for GlusterFS 4.1.0 */
-#define GD_OP_VERSION_4_2_0 40200 /* Op-version for GlusterFS 4.2.0 */
+#define GD_OP_VERSION_5_0 50000 /* Op-version for GlusterFS 5.0 */
#define GD_OP_VER_PERSISTENT_AFR_XATTRS GD_OP_VERSION_3_6_0
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
index a95034642ee..c2fde028f08 100644
--- a/xlators/features/shard/src/shard.c
+++ b/xlators/features/shard/src/shard.c
@@ -6806,7 +6806,7 @@ struct volume_options options[] = {
{
.key = {"shard-deletion-rate"},
.type = GF_OPTION_TYPE_INT,
- .op_version = {GD_OP_VERSION_4_2_0},
+ .op_version = {GD_OP_VERSION_5_0},
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC,
.tags = {"shard"},
.default_value = "100",
@@ -6817,7 +6817,7 @@ struct volume_options options[] = {
{
.key = {"shard-lru-limit"},
.type = GF_OPTION_TYPE_INT,
- .op_version = {GD_OP_VERSION_4_2_0},
+ .op_version = {GD_OP_VERSION_5_0},
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT,
.tags = {"shard"},
.default_value = "16384",
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
index aee83109542..5a8d8a10e25 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
@@ -1738,7 +1738,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
{.key = "performance.ctime-invalidation",
.voltype = "performance/quick-read",
.option = "ctime-invalidation",
- .op_version = GD_OP_VERSION_4_2_0,
+ .op_version = GD_OP_VERSION_5_0,
.flags = VOLOPT_FLAG_CLIENT_OPT},
{.key = "performance.flush-behind",
.voltype = "performance/write-behind",
@@ -3294,13 +3294,13 @@ struct volopt_map_entry glusterd_volopt_map[] = {
{
.key = "features.shard-lru-limit",
.voltype = "features/shard",
- .op_version = GD_OP_VERSION_4_2_0,
+ .op_version = GD_OP_VERSION_5_0,
.flags = VOLOPT_FLAG_CLIENT_OPT,
.type = NO_DOC,
},
{.key = "features.shard-deletion-rate",
.voltype = "features/shard",
- .op_version = GD_OP_VERSION_4_2_0,
+ .op_version = GD_OP_VERSION_5_0,
.flags = VOLOPT_FLAG_CLIENT_OPT},
{
.key = "features.scrub-throttle",
@@ -3617,7 +3617,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
.voltype = "mgmt/glusterd",
.type = GLOBAL_NO_DOC,
.value = "INFO",
- .op_version = GD_OP_VERSION_4_2_0},
+ .op_version = GD_OP_VERSION_5_0},
{.key = "debug.delay-gen",
.voltype = "debug/delay-gen",
.option = "!debug",
@@ -3672,22 +3672,22 @@ struct volopt_map_entry glusterd_volopt_map[] = {
.flags = VOLOPT_FLAG_CLIENT_OPT | VOLOPT_FLAG_XLATOR_OPT},
{.key = "feature.cloudsync-storetype",
.voltype = "features/cloudsync",
- .op_version = GD_OP_VERSION_4_2_0,
+ .op_version = GD_OP_VERSION_5_0,
.flags = VOLOPT_FLAG_CLIENT_OPT},
{.key = "features.s3plugin-seckey",
.voltype = "features/cloudsync",
- .op_version = GD_OP_VERSION_4_2_0,
+ .op_version = GD_OP_VERSION_5_0,
.flags = VOLOPT_FLAG_CLIENT_OPT},
{.key = "features.s3plugin-keyid",
.voltype = "features/cloudsync",
- .op_version = GD_OP_VERSION_4_2_0,
+ .op_version = GD_OP_VERSION_5_0,
.flags = VOLOPT_FLAG_CLIENT_OPT},
{.key = "features.s3plugin-bucketid",
.voltype = "features/cloudsync",
- .op_version = GD_OP_VERSION_4_2_0,
+ .op_version = GD_OP_VERSION_5_0,
.flags = VOLOPT_FLAG_CLIENT_OPT},
{.key = "features.s3plugin-hostname",
.voltype = "features/cloudsync",
- .op_version = GD_OP_VERSION_4_2_0,
+ .op_version = GD_OP_VERSION_5_0,
.flags = VOLOPT_FLAG_CLIENT_OPT},
{.key = NULL}};
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index 39ce428104b..ec545ba6193 100644
--- a/xlators/performance/quick-read/src/quick-read.c
+++ b/xlators/performance/quick-read/src/quick-read.c
@@ -1613,7 +1613,7 @@ struct volume_options qr_options[] = {
.key = {"ctime-invalidation"},
.type = GF_OPTION_TYPE_BOOL,
.default_value = "false",
- .op_version = {GD_OP_VERSION_4_2_0},
+ .op_version = {GD_OP_VERSION_5_0},
.flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
.description = "Quick-read by default uses mtime to identify changes "
"to file data. However there are applications like "
diff --git a/xlators/playground/template/src/template.c b/xlators/playground/template/src/template.c
index c832167dc16..4a9e8d2e6f3 100644
--- a/xlators/playground/template/src/template.c
+++ b/xlators/playground/template/src/template.c
@@ -162,7 +162,7 @@ struct volume_options template_options[] = {
.max = 1024,
.default_value = "1",
.description = "a dummy option to show how to set the option",
- .op_version = {GD_OP_VERSION_4_2_0},
+ .op_version = {GD_OP_VERSION_5_0},
.flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC,
.level = OPT_STATUS_EXPERIMENTAL,
.tags = {"development", "experimental", "template"},
@@ -177,7 +177,7 @@ xlator_api_t xlator_api = {
.reconfigure = template_reconfigure,
.mem_acct_init = template_mem_acct_init,
.dump_metrics = template_dump_metrics,
- .op_version = {GD_OP_VERSION_4_2_0},
+ .op_version = {GD_OP_VERSION_5_0},
.dumpops = &template_dumpops,
.fops = &template_fops,
.cbks = &template_cbks,