summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2018-02-13 08:06:24 +0530
committerhari gowtham <hgowtham@redhat.com>2018-02-13 11:19:48 +0530
commit79f57a2c1beac644d91f221e11642b27c7193b1c (patch)
treecd96c908e25c60d3bac8ae26068d112f7300668f /xlators/mgmt
parent9436976cb1971f7426ba55f28f81bac294170f90 (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: 1544637 Signed-off-by: hari gowtham <hgowtham@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-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 4d22b6333e0..a4ab4cf50db 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -1040,12 +1040,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);