summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafi KC <rafi.kavungal@iternity.com>2020-06-12 15:36:00 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2020-08-20 00:11:57 +0000
commitf10ba781731b576413350b09f375e46a5a4a418b (patch)
treef632f002780a659225e90da21554bb0ff3a06c0e
parent932bd455f8fd11f2ac04c25c1a6d75279b2b3a08 (diff)
afr/halo: Halo is not showing any split-brain info
heal info command uses a gfapi based daemon to fetch the split-brain info. Since they are using the same graph as client, if the latency is high then one node will be considered as down. Hence it cannot detect any split-brain info Change-Id: Id1b72f9c0e49cc0d35ad751b8a17d64da41a5d39 Fixes: #1355 Signed-off-by: Mohammed Rafi KC <rafi.kavungal@iternity.com>
-rw-r--r--heal/src/glfs-heal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c
index ef53dfc0ccb..bf4b47f8760 100644
--- a/heal/src/glfs-heal.c
+++ b/heal/src/glfs-heal.c
@@ -1055,6 +1055,10 @@ glfsh_set_heal_options(glfs_t *fs, gf_xl_afr_op_t heal_op)
if (ret)
goto out;
+ ret = glfs_set_xlator_option(fs, "*-replicate-*", "halo-enabled", "off");
+ if (ret)
+ goto out;
+
if ((heal_op != GF_SHD_OP_SBRAIN_HEAL_FROM_BIGGER_FILE) &&
(heal_op != GF_SHD_OP_SBRAIN_HEAL_FROM_BRICK) &&
(heal_op != GF_SHD_OP_SBRAIN_HEAL_FROM_LATEST_MTIME))