path: root/heal/src
diff options
authorMohamed Ashiq <>2015-11-05 20:22:02 +0530
committerPranith Kumar Karampuri <>2015-11-23 21:44:16 -0800
commit31f0fd1d401f1a4c007fd44854f99f15aff2346b (patch)
tree8b43ec0b3d401ec5e0e0d64b8f133d40d3cf144a /heal/src
parent74699ddd777f7e862991cf3afad91823d30e5b84 (diff)
afr:vol heal info fails when transport.socket.bind-address is set in glusterd
Problem: If glusterd's bind address is specified using transport.socket.bind- address option to a specific IP, the heal command 'gluster volume heal <VOLNAME> info' fails with error '<vol_name>: Not able to fetch volfile from glusterd.Volume heal failed.' This patch uses Unix domain socket transport type of libglfapi to get the volfile. Change-Id: Ic4239b339f0246d77f1622c07d5f4708129d30c7 BUG: 1277997 Signed-off-by: Mohamed Ashiq <> Signed-off-by: Humble Devassy Chirammal <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Ravishankar N <> Tested-by: NetBSD Build System <> Reviewed-by: Niels de Vos <> Reviewed-by: Anuradha Talur <> Reviewed-by: Pranith Kumar Karampuri <>
Diffstat (limited to 'heal/src')
1 files changed, 2 insertions, 1 deletions
diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c
index 207e472..2f120c9 100644
--- a/heal/src/glfs-heal.c
+++ b/heal/src/glfs-heal.c
@@ -19,6 +19,7 @@
#include "syncop-utils.h"
#include <string.h>
#include <time.h>
+#include "glusterfs.h"
#define USAGE_STR "Usage: %s <VOLNAME> [bigger-file <FILE> | "\
@@ -756,7 +757,7 @@ main (int argc, char **argv)
goto out;
- ret = glfs_set_volfile_server (fs, "tcp", "localhost", 24007);
+ ret = glfs_set_volfile_server (fs, "unix", DEFAULT_GLUSTERD_SOCKFILE, 0);
if (ret) {
printf("Setting the volfile server failed, %s\n", strerror (errno));
goto out;