From f10ba781731b576413350b09f375e46a5a4a418b Mon Sep 17 00:00:00 2001 From: Rafi KC Date: Fri, 12 Jun 2020 15:36:00 +0530 Subject: 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 --- heal/src/glfs-heal.c | 4 ++++ 1 file changed, 4 insertions(+) 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)) -- cgit