256ebe
From 44f758a56c5c5ad340ebc6d6a6478e8712c2c101 Mon Sep 17 00:00:00 2001
256ebe
From: Atin Mukherjee <amukherj@redhat.com>
256ebe
Date: Mon, 21 Mar 2016 22:31:02 +0530
256ebe
Subject: [PATCH 05/52] libglusterfs/glusterd: Fix compilation errors
256ebe
256ebe
1. Removed duplicate definition of GD_OP_VER_PERSISTENT_AFR_XATTRS introduced in
256ebe
d367a88 where GD_OP_VER_PERSISTENT_AFR_XATTRS was redfined
256ebe
256ebe
2. Fixed incorrect op-version
256ebe
256ebe
Label: DOWNSTREAM ONLY
256ebe
256ebe
Change-Id: Icfa3206e8a41a11875641f57523732b80837f8f6
256ebe
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
256ebe
Reviewed-on: https://code.engineering.redhat.com/gerrit/70384
256ebe
Reviewed-by: Nithya Balachandran <nbalacha@redhat.com>
256ebe
---
256ebe
 xlators/mgmt/glusterd/src/glusterd-store.c | 2 +-
256ebe
 1 file changed, 1 insertion(+), 1 deletion(-)
256ebe
256ebe
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
256ebe
index 64447e7..51ca3d1 100644
256ebe
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
256ebe
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
256ebe
@@ -967,7 +967,7 @@ glusterd_volume_exclude_options_write(int fd, glusterd_volinfo_t *volinfo)
256ebe
             goto out;
256ebe
     }
256ebe
 
256ebe
-    if (conf->op_version >= GD_OP_VERSION_RHS_3_0) {
256ebe
+    if (conf->op_version >= GD_OP_VERSION_3_7_0) {
256ebe
         snprintf(buf, sizeof(buf), "%d", volinfo->disperse_count);
256ebe
         ret = gf_store_save_value(fd, GLUSTERD_STORE_KEY_VOL_DISPERSE_CNT, buf);
256ebe
         if (ret)
256ebe
-- 
256ebe
1.8.3.1
256ebe