74b1de
From 64ffcf770c5c0087f8937b5235ed0ad5b0efe7f2 Mon Sep 17 00:00:00 2001
74b1de
From: Krutika Dhananjay <kdhananj@redhat.com>
74b1de
Date: Wed, 12 Sep 2018 21:41:35 +0530
74b1de
Subject: [PATCH 28/52] glusterd: Reset op-version for
74b1de
 "features.shard-deletion-rate"
74b1de
74b1de
The op-version for the "features.shard-deletion-rate" option was set to
74b1de
4.2.0 in the upstream patch and backported at
74b1de
e75be952569eb69325d5f505f7ab94aace31be52.
74b1de
This commit reverts the op-version for this option to 3.13.3.
74b1de
74b1de
Label: DOWNSTREAM ONLY
74b1de
74b1de
Change-Id: Ie3d12f3119ad7a4b40d81bd8bd6ed591658e8371
74b1de
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
74b1de
Reviewed-on: https://code.engineering.redhat.com/gerrit/154865
74b1de
Tested-by: RHGS Build Bot <nigelb@redhat.com>
74b1de
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
74b1de
---
74b1de
 libglusterfs/src/glusterfs/globals.h            | 2 ++
74b1de
 xlators/mgmt/glusterd/src/glusterd-volume-set.c | 2 +-
74b1de
 2 files changed, 3 insertions(+), 1 deletion(-)
74b1de
74b1de
diff --git a/libglusterfs/src/glusterfs/globals.h b/libglusterfs/src/glusterfs/globals.h
74b1de
index 4a82889..4d95f75 100644
74b1de
--- a/libglusterfs/src/glusterfs/globals.h
74b1de
+++ b/libglusterfs/src/glusterfs/globals.h
74b1de
@@ -120,6 +120,8 @@
74b1de
 
74b1de
 #define GD_OP_VERSION_3_13_3 31303 /* Op-version for GlusterFS 3.13.3 */
74b1de
 
74b1de
+#define GD_OP_VERSION_3_13_4 31304 /* Op-version for GlusterFS 3.13.4 */
74b1de
+
74b1de
 #define GD_OP_VERSION_4_0_0 40000 /* Op-version for GlusterFS 4.0.0 */
74b1de
 
74b1de
 #define GD_OP_VERSION_4_1_0 40100 /* Op-version for GlusterFS 4.1.0 */
74b1de
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
74b1de
index 2bd0a9c..2f3271f 100644
74b1de
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
74b1de
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
74b1de
@@ -2552,7 +2552,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {
74b1de
     },
74b1de
     {.key = "features.shard-deletion-rate",
74b1de
      .voltype = "features/shard",
74b1de
-     .op_version = GD_OP_VERSION_5_0,
74b1de
+     .op_version = GD_OP_VERSION_3_13_4,
74b1de
      .flags = VOLOPT_FLAG_CLIENT_OPT},
74b1de
     {
74b1de
         .key = "features.scrub-throttle",
74b1de
-- 
74b1de
1.8.3.1
74b1de