diff options
author | Mohamed Ashiq <mliyazud@redhat.com> | 2015-11-05 20:22:02 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-11-23 21:44:16 -0800 |
commit | 31f0fd1d401f1a4c007fd44854f99f15aff2346b (patch) | |
tree | 8b43ec0b3d401ec5e0e0d64b8f133d40d3cf144a /heal/src | |
parent | 74699ddd777f7e862991cf3afad91823d30e5b84 (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 <mliyazud@redhat.com>
Signed-off-by: Humble Devassy Chirammal <hchiramm@redhat.com>
Reviewed-on: http://review.gluster.org/12508
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Ravishankar N <ravishankar@redhat.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Reviewed-by: Anuradha Talur <atalur@redhat.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'heal/src')
-rw-r--r-- | heal/src/glfs-heal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c index 207e47297b5..2f120c9bd3d 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 DEFAULT_HEAL_LOG_FILE_DIRECTORY DATADIR "/log/glusterfs" #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; |