summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2018-02-13 08:06:24 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2018-02-15 14:08:27 +0000
commitff23cba5d8bd1989e0d45680dc78d6c65d5f4020 (patch)
tree32dc2715145a633db64fa8f854c2eb8dc628e2d5
parentcc22bef0d1a41664ba98d333515cbb5fc1a2879f (diff)
glusterd: fix tier-enabled flag op-version check
tier-enabled flag in volinfo structure was introduced in 3.10, however while writing this value to the glusterd store was done with a wrong op-version check which results into volume checksum failure during upgrades. >Change-Id: I4330d0c4594eee19cba42e2cdf49a63f106627d4 >BUG: 1544600 >Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Change-Id: I4330d0c4594eee19cba42e2cdf49a63f106627d4 BUG: 1544638 Signed-off-by: hari gowtham <hgowtham@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
index f07e5fa315e..b6efac5a51a 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -1039,12 +1039,12 @@ glusterd_volume_exclude_options_write (int fd, glusterd_volinfo_t *volinfo)
buf);
if (ret)
goto out;
-
+ }
+ if (conf->op_version >= GD_OP_VERSION_3_10_0) {
snprintf (buf, sizeof (buf), "%d", volinfo->is_tier_enabled);
ret = gf_store_save_value (fd, GF_TIER_ENABLED, buf);
if (ret)
goto out;
-
}
ret = glusterd_volume_write_tier_details (fd, volinfo);