17b94a
From 312da653ac80b537af06139f8d83a63180c72461 Mon Sep 17 00:00:00 2001
17b94a
From: Pranith Kumar K <pkarampu@redhat.com>
17b94a
Date: Tue, 10 Sep 2019 14:04:17 +0530
17b94a
Subject: [PATCH 290/297] glusterd: tag disperse.quorum-count for 31306
17b94a
17b94a
In upstream disperse.quorum-count is makred for release-8
17b94a
latest new op-version is 31306.
17b94a
17b94a
Label: DOWNSTREAM ONLY
17b94a
17b94a
fixes: bz#1748688
17b94a
Change-Id: I88fdbd56ce3b8475b5ec670659adaa9d11c01d97
17b94a
Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
17b94a
Reviewed-on: https://code.engineering.redhat.com/gerrit/180675
17b94a
Reviewed-by: Ashish Pandey <aspandey@redhat.com>
17b94a
Tested-by: RHGS Build Bot <nigelb@redhat.com>
17b94a
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
17b94a
---
17b94a
 libglusterfs/src/glusterfs/globals.h            | 12 ++++++------
17b94a
 xlators/mgmt/glusterd/src/glusterd-volume-set.c |  2 +-
17b94a
 2 files changed, 7 insertions(+), 7 deletions(-)
17b94a
17b94a
diff --git a/libglusterfs/src/glusterfs/globals.h b/libglusterfs/src/glusterfs/globals.h
17b94a
index bdc8b3d..e218285 100644
17b94a
--- a/libglusterfs/src/glusterfs/globals.h
17b94a
+++ b/libglusterfs/src/glusterfs/globals.h
17b94a
@@ -50,19 +50,19 @@
17b94a
     1 /* MIN is the fresh start op-version, mostly                             \
17b94a
          should not change */
17b94a
 #define GD_OP_VERSION_MAX                                                      \
17b94a
-    GD_OP_VERSION_8_0 /* MAX VERSION is the maximum                            \
17b94a
+    GD_OP_VERSION_7_0 /* MAX VERSION is the maximum                            \
17b94a
                          count in VME table, should                            \
17b94a
                          keep changing with                                    \
17b94a
                          introduction of newer                                 \
17b94a
                          versions */
17b94a
 
17b94a
-#define GD_OP_VERSION_RHS_3_0    30000 /* Op-Version of RHS 3.0 */
17b94a
+#define GD_OP_VERSION_RHS_3_0 30000 /* Op-Version of RHS 3.0 */
17b94a
 
17b94a
 #define GD_OP_VER_PERSISTENT_AFR_XATTRS GD_OP_VERSION_RHS_3_0
17b94a
 
17b94a
-#define GD_OP_VERSION_RHS_2_1_5  20105 /* RHS 2.1 update 5 */
17b94a
+#define GD_OP_VERSION_RHS_2_1_5 20105 /* RHS 2.1 update 5 */
17b94a
 
17b94a
-#define GD_OP_VERSION_RHS_3_0_4  30004 /* Op-Version of RHS 3.0.4 */
17b94a
+#define GD_OP_VERSION_RHS_3_0_4 30004 /* Op-Version of RHS 3.0.4 */
17b94a
 
17b94a
 #define GD_OP_VERSION_3_7_0 30700 /* Op-version for GlusterFS 3.7.0 */
17b94a
 
17b94a
@@ -124,6 +124,8 @@
17b94a
 
17b94a
 #define GD_OP_VERSION_3_13_5 31305 /* Op-version for GlusterFS 3.13.5 */
17b94a
 
17b94a
+#define GD_OP_VERSION_3_13_6 31306 /* Op-version for GlusterFS 3.13.6 */
17b94a
+
17b94a
 #define GD_OP_VERSION_4_0_0 40000 /* Op-version for GlusterFS 4.0.0 */
17b94a
 
17b94a
 #define GD_OP_VERSION_4_1_0 40100 /* Op-version for GlusterFS 4.1.0 */
17b94a
@@ -136,8 +138,6 @@
17b94a
 
17b94a
 #define GD_OP_VERSION_7_0 70000 /* Op-version for GlusterFS 7.0 */
17b94a
 
17b94a
-#define GD_OP_VERSION_8_0 80000 /* Op-version for GlusterFS 8.0 */
17b94a
-
17b94a
 #include "glusterfs/xlator.h"
17b94a
 #include "glusterfs/options.h"
17b94a
 
17b94a
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
17b94a
index 7ca47a6..16601a2 100644
17b94a
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
17b94a
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
17b94a
@@ -3702,7 +3702,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
17b94a
     {.key = "disperse.quorum-count",
17b94a
      .voltype = "cluster/disperse",
17b94a
      .type = NO_DOC,
17b94a
-     .op_version = GD_OP_VERSION_8_0,
17b94a
+     .op_version = GD_OP_VERSION_3_13_6,
17b94a
      .validate_fn = validate_disperse_quorum_count,
17b94a
      .description = "This option can be used to define how many successes on"
17b94a
                     "the bricks constitute a success to the application. This"
17b94a
-- 
17b94a
1.8.3.1
17b94a