d1681e
From 6d173a903dccc8fc885f8b15994176558f277ad1 Mon Sep 17 00:00:00 2001
d1681e
From: hari gowtham <hgowtham@redhat.com>
d1681e
Date: Thu, 8 Feb 2018 15:45:03 +0530
d1681e
Subject: [PATCH 148/148] glusterd/tier: is_tier_enabled inserted causing
d1681e
 checksum mismatch
d1681e
d1681e
the volfile entry is_tier_enabled is checked for version 3.7.6
d1681e
while it was supposed to check for 3.10.
d1681e
this is to fix it downstream only but changing the version of check
d1681e
to 3.13.1
d1681e
d1681e
Label: DOWNSTREAM ONLY
d1681e
Change-Id: I6ae9a0346d67fcc47a4762db5089d8010070a735
d1681e
BUG: 1543296
d1681e
Signed-off-by: hari gowtham <hgowtham@redhat.com>
d1681e
Reviewed-on: https://code.engineering.redhat.com/gerrit/129822
d1681e
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
d1681e
Tested-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
d1681e
---
d1681e
 xlators/mgmt/glusterd/src/glusterd-store.c | 2 ++
d1681e
 1 file changed, 2 insertions(+)
d1681e
d1681e
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
d1681e
index 6bb7372..387e7e5 100644
d1681e
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
d1681e
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
d1681e
@@ -1043,7 +1043,9 @@ glusterd_volume_exclude_options_write (int fd, glusterd_volinfo_t *volinfo)
d1681e
                                            buf);
d1681e
                 if (ret)
d1681e
                         goto out;
d1681e
+        }
d1681e
 
d1681e
+        if (conf->op_version >= GD_OP_VERSION_3_13_1) {
d1681e
                 snprintf (buf, sizeof (buf), "%d", volinfo->is_tier_enabled);
d1681e
                 ret = gf_store_save_value (fd, GF_TIER_ENABLED, buf);
d1681e
                 if (ret)
d1681e
-- 
d1681e
1.8.3.1
d1681e