14f8ab
From 254033a80d85460675c921c272fb94bb7e9f67d4 Mon Sep 17 00:00:00 2001
14f8ab
From: Atin Mukherjee <amukherj@redhat.com>
14f8ab
Date: Tue, 18 Dec 2018 17:57:25 +0530
14f8ab
Subject: [PATCH 35/52] glusterd: tag rebalance mgmt_v3 command to op-version
14f8ab
 31305
14f8ab
14f8ab
In upstream migrating rebalance command is tagged to op-version 60000
14f8ab
but in downstream the latest new op-version is 31305.
14f8ab
14f8ab
Label: DOWNSTREAM ONLY
14f8ab
14f8ab
Change-Id: I30bbad3efca29bf42b9a750581eb1aebc8a30ff9
14f8ab
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
14f8ab
Reviewed-on: https://code.engineering.redhat.com/gerrit/158943
14f8ab
Tested-by: RHGS Build Bot <nigelb@redhat.com>
14f8ab
---
14f8ab
 xlators/mgmt/glusterd/src/glusterd-rebalance.c | 4 ++--
14f8ab
 1 file changed, 2 insertions(+), 2 deletions(-)
14f8ab
14f8ab
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
14f8ab
index e20e3c4..ed5ded5 100644
14f8ab
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
14f8ab
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
14f8ab
@@ -573,12 +573,12 @@ __glusterd_handle_defrag_volume(rpcsvc_request_t *req)
14f8ab
     } else
14f8ab
         op = GD_OP_REBALANCE;
14f8ab
 
14f8ab
-    if (priv->op_version < GD_OP_VERSION_6_0) {
14f8ab
+    if (priv->op_version < GD_OP_VERSION_3_13_5) {
14f8ab
         gf_msg_debug(this->name, 0,
14f8ab
                      "The cluster is operating at "
14f8ab
                      "version less than %d. Falling back "
14f8ab
                      "to op-sm framework.",
14f8ab
-                     GD_OP_VERSION_6_0);
14f8ab
+                     GD_OP_VERSION_3_13_5);
14f8ab
         ret = glusterd_op_begin(req, op, dict, msg, sizeof(msg));
14f8ab
         glusterd_friend_sm();
14f8ab
         glusterd_op_sm();
14f8ab
-- 
14f8ab
1.8.3.1
14f8ab