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