233933
From 463a920541a7579f2407f22597e4014494422804 Mon Sep 17 00:00:00 2001
233933
From: Sanju Rakonde <srakonde@redhat.com>
233933
Date: Mon, 17 Dec 2018 14:07:01 +0530
233933
Subject: [PATCH 34/52] glusterd: introduce a new op-version for rhgs-3.4.3
233933
233933
This patch introduces a new op-version 31305 for rhgs-3.4.3 and
233933
sets the max op-version to 31305.
233933
233933
For migrating profile commands (commit e68845ff7018e5d81d7979684b18e6eda449b088)
233933
we used GD_OP_VERSION_6_0 in upstream. we are changing
233933
it to GD_OP_VERSION_3_13_5 here.
233933
233933
Label: DOWNSTREAM ONLY
233933
233933
Change-Id: Ie3a05c70eb4e406889c468343f54e999b1218f19
233933
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
233933
Reviewed-on: https://code.engineering.redhat.com/gerrit/158795
233933
Tested-by: RHGS Build Bot <nigelb@redhat.com>
233933
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
233933
---
233933
 libglusterfs/src/glusterfs/globals.h         | 2 ++
233933
 xlators/mgmt/glusterd/src/glusterd-handler.c | 4 ++--
233933
 2 files changed, 4 insertions(+), 2 deletions(-)
233933
233933
diff --git a/libglusterfs/src/glusterfs/globals.h b/libglusterfs/src/glusterfs/globals.h
233933
index 4d95f75..6642ba0 100644
233933
--- a/libglusterfs/src/glusterfs/globals.h
233933
+++ b/libglusterfs/src/glusterfs/globals.h
233933
@@ -122,6 +122,8 @@
233933
 
233933
 #define GD_OP_VERSION_3_13_4 31304 /* Op-version for GlusterFS 3.13.4 */
233933
 
233933
+#define GD_OP_VERSION_3_13_5 31305 /* Op-version for GlusterFS 3.13.5 */
233933
+
233933
 #define GD_OP_VERSION_4_0_0 40000 /* Op-version for GlusterFS 4.0.0 */
233933
 
233933
 #define GD_OP_VERSION_4_1_0 40100 /* Op-version for GlusterFS 4.1.0 */
233933
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
233933
index 387643d..de44af7 100644
233933
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
233933
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
233933
@@ -3085,12 +3085,12 @@ __glusterd_handle_cli_profile_volume(rpcsvc_request_t *req)
233933
         goto out;
233933
     }
233933
 
233933
-    if (conf->op_version < GD_OP_VERSION_6_0) {
233933
+    if (conf->op_version < GD_OP_VERSION_3_13_5) {
233933
         gf_msg_debug(this->name, 0,
233933
                      "The cluster is operating at "
233933
                      "version less than %d. Falling back "
233933
                      "to op-sm framework.",
233933
-                     GD_OP_VERSION_6_0);
233933
+                     GD_OP_VERSION_3_13_5);
233933
         ret = glusterd_op_begin(req, cli_op, dict, err_str, sizeof(err_str));
233933
         glusterd_friend_sm();
233933
         glusterd_op_sm();
233933
-- 
233933
1.8.3.1
233933