diff options
author | Humble Devassy Chirammal <hchiramm@redhat.com> | 2015-02-25 17:10:12 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2015-03-03 04:44:19 -0800 |
commit | 4f65179a8f90547498b00caf48eaad618098ae70 (patch) | |
tree | e0beac90ea607363240a4067c01441be115789d7 /heal/src | |
parent | fc54f75ea49605e7fb5808e3fc01dfaa6b7c4649 (diff) |
afr: catch proper result of glfs_set_volfile_server
Change-Id: I5a1db7b88c33bf5faa7a8848502357b052a799f4
BUG: 1194640
Signed-off-by: Humble Devassy Chirammal <hchiramm@redhat.com>
Reviewed-on: http://review.gluster.org/9746
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Ravishankar N <ravishankar@redhat.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'heal/src')
-rw-r--r-- | heal/src/glfs-heal.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c index 7e8673a65ac..b32002a1a74 100644 --- a/heal/src/glfs-heal.c +++ b/heal/src/glfs-heal.c @@ -736,12 +736,15 @@ main (int argc, char **argv) } ret = glfs_set_volfile_server (fs, "tcp", "localhost", 24007); + if (ret) { + printf("Setting the volfile server failed, %s\n", strerror (errno)); + goto out; + } snprintf (logfilepath, sizeof (logfilepath), DEFAULT_HEAL_LOG_FILE_DIRECTORY"/glfsheal-%s.log", volname); ret = glfs_set_logging(fs, logfilepath, GF_LOG_INFO); if (ret < 0) { - ret = -1; - printf ("Not able to initialize volume '%s'\n", volname); + printf ("Failed to set the log file path, %s\n", strerror (errno)); goto out; } |