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