887953
From ff97d22a02c02ad5edced2755a799a587b45cb79 Mon Sep 17 00:00:00 2001
887953
From: Sanju Rakonde <srakonde@redhat.com>
887953
Date: Mon, 17 Dec 2018 14:07:01 +0530
887953
Subject: [PATCH 472/493] glusterd: introduce a new op-version for rhgs-3.4.3
887953
887953
This patch introduces a new op-version 31305 for rhgs-3.4.3 and
887953
sets the max op-version to 31305.
887953
887953
For migrating profile commands (commit e68845ff7018e5d81d7979684b18e6eda449b088)
887953
we used GD_OP_VERSION_6_0 in upstream. we are changing
887953
it to GD_OP_VERSION_3_13_5 here.
887953
887953
Label: DOWNSTREAM ONLY
887953
887953
Change-Id: Ie3a05c70eb4e406889c468343f54e999b1218f19
887953
BUG: 1639476
887953
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
887953
Reviewed-on: https://code.engineering.redhat.com/gerrit/158795
887953
Tested-by: RHGS Build Bot <nigelb@redhat.com>
887953
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
887953
---
887953
 libglusterfs/src/globals.h                   | 5 ++---
887953
 xlators/mgmt/glusterd/src/glusterd-handler.c | 4 ++--
887953
 2 files changed, 4 insertions(+), 5 deletions(-)
887953
887953
diff --git a/libglusterfs/src/globals.h b/libglusterfs/src/globals.h
887953
index d2b0964..343263c 100644
887953
--- a/libglusterfs/src/globals.h
887953
+++ b/libglusterfs/src/globals.h
887953
@@ -43,7 +43,7 @@
887953
  */
887953
 #define GD_OP_VERSION_MIN  1 /* MIN is the fresh start op-version, mostly
887953
                                 should not change */
887953
-#define GD_OP_VERSION_MAX  GD_OP_VERSION_3_13_4 /* MAX VERSION is the maximum
887953
+#define GD_OP_VERSION_MAX  GD_OP_VERSION_3_13_5 /* MAX VERSION is the maximum
887953
                                                   count in VME table, should
887953
                                                   keep changing with
887953
                                                   introduction of newer
887953
@@ -111,12 +111,11 @@
887953
 
887953
 #define GD_OP_VERSION_3_13_3   31303 /* Op-version for GlusterFS 3.13.3 */
887953
 
887953
-#define GD_OP_VERSION_6_0      60000 /* Op-version for GlusterFS 6.0 */
887953
-
887953
 /* Downstream only change */
887953
 #define GD_OP_VERSION_3_11_2   31102 /* Op-version for RHGS 3.3.1-async */
887953
 #define GD_OP_VERSION_3_13_3   31303 /* Op-version for RHGS-3.4-Batch Update-1*/
887953
 #define GD_OP_VERSION_3_13_4   31304 /* Op-version for RHGS-3.4-Batch Update-2*/
887953
+#define GD_OP_VERSION_3_13_5   31305 /* Op-version for RHGS-3.4-Batch Update-3*/
887953
 
887953
 #include "xlator.h"
887953
 
887953
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
887953
index 90eaa95..c71bf3c 100644
887953
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
887953
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
887953
@@ -3113,10 +3113,10 @@ __glusterd_handle_cli_profile_volume (rpcsvc_request_t *req)
887953
                 goto out;
887953
         }
887953
 
887953
-        if (conf->op_version < GD_OP_VERSION_6_0) {
887953
+        if (conf->op_version < GD_OP_VERSION_3_13_5) {
887953
                 gf_msg_debug(this->name, 0, "The cluster is operating at "
887953
                              "version less than %d. Falling back to op-sm "
887953
-                             "framework.", GD_OP_VERSION_6_0);
887953
+                             "framework.", GD_OP_VERSION_3_13_5);
887953
                 ret = glusterd_op_begin(req, cli_op, dict, err_str, sizeof(err_str));
887953
                 glusterd_friend_sm();
887953
                 glusterd_op_sm();
887953
-- 
887953
1.8.3.1
887953