e7a346
From dd1d565505d1f9c41dd6f151341f9337d89aa7cf Mon Sep 17 00:00:00 2001
e7a346
From: Krutika Dhananjay <kdhananj@redhat.com>
e7a346
Date: Tue, 6 Nov 2018 18:44:55 +0530
e7a346
Subject: [PATCH 442/444] glusterd: Reset op-version for
e7a346
 "features.shard-lru-limit"
e7a346
e7a346
The op-version for the "features.shard-lru-limit" option was set to
e7a346
4.2.0 in the upstream patch and backported at
e7a346
41e7e33c6512e98a1567e5a5532d3898b59cfa98
e7a346
e7a346
This commit reverts the op-version for this option to 3.13.4.
e7a346
e7a346
Label: DOWNSTREAM ONLY
e7a346
e7a346
Change-Id: I7d3ed6b373851267c78fc6815a83bee2c0906413
e7a346
BUG: 1603118
e7a346
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
e7a346
Reviewed-on: https://code.engineering.redhat.com/gerrit/155127
e7a346
Tested-by: RHGS Build Bot <nigelb@redhat.com>
e7a346
Reviewed-by: Xavi Hernandez <xhernandez@redhat.com>
e7a346
---
e7a346
 libglusterfs/src/globals.h                      | 4 +---
e7a346
 xlators/mgmt/glusterd/src/glusterd-volume-set.c | 2 +-
e7a346
 2 files changed, 2 insertions(+), 4 deletions(-)
e7a346
e7a346
diff --git a/libglusterfs/src/globals.h b/libglusterfs/src/globals.h
e7a346
index 555f44b..1bede2e 100644
e7a346
--- a/libglusterfs/src/globals.h
e7a346
+++ b/libglusterfs/src/globals.h
e7a346
@@ -43,7 +43,7 @@
e7a346
  */
e7a346
 #define GD_OP_VERSION_MIN  1 /* MIN is the fresh start op-version, mostly
e7a346
                                 should not change */
e7a346
-#define GD_OP_VERSION_MAX  GD_OP_VERSION_4_2_0 /* MAX VERSION is the maximum
e7a346
+#define GD_OP_VERSION_MAX  GD_OP_VERSION_3_13_4 /* MAX VERSION is the maximum
e7a346
                                                   count in VME table, should
e7a346
                                                   keep changing with
e7a346
                                                   introduction of newer
e7a346
@@ -111,8 +111,6 @@
e7a346
 
e7a346
 #define GD_OP_VERSION_3_13_3   31303 /* Op-version for GlusterFS 3.13.3 */
e7a346
 
e7a346
-#define GD_OP_VERSION_4_2_0    40200 /* Op-version for GlusterFS 4.2.0 */
e7a346
-
e7a346
 /* Downstream only change */
e7a346
 #define GD_OP_VERSION_3_11_2   31102 /* Op-version for RHGS 3.3.1-async */
e7a346
 #define GD_OP_VERSION_3_13_3   31303 /* Op-version for RHGS-3.4-Batch Update-1*/
e7a346
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
e7a346
index d442fe0..1175f1d 100644
e7a346
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
e7a346
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
e7a346
@@ -3300,7 +3300,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
e7a346
         },
e7a346
         { .key        = "features.shard-lru-limit",
e7a346
           .voltype    = "features/shard",
e7a346
-          .op_version = GD_OP_VERSION_4_2_0,
e7a346
+          .op_version = GD_OP_VERSION_3_13_4,
e7a346
           .flags      = OPT_FLAG_CLIENT_OPT,
e7a346
           .type       = NO_DOC,
e7a346
         },
e7a346
-- 
e7a346
1.8.3.1
e7a346