summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 1bbe60d9ce0..695f456823d 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -1144,7 +1144,6 @@ set_log_file_path (cmd_args_t *cmd_args)
int j = 0;
int ret = 0;
int port = 0;
- char *tmp_ptr = NULL;
char tmp_str[1024] = {0,};
if (cmd_args->mount_point) {
@@ -1181,17 +1180,15 @@ set_log_file_path (cmd_args_t *cmd_args)
}
if (cmd_args->volfile_server) {
- port = 1;
- tmp_ptr = "default";
+ port = GF_DEFAULT_BASE_PORT;
if (cmd_args->volfile_server_port)
port = cmd_args->volfile_server_port;
- if (cmd_args->volfile_id)
- tmp_ptr = cmd_args->volfile_id;
ret = gf_asprintf (&cmd_args->log_file,
DEFAULT_LOG_FILE_DIRECTORY "/%s-%s-%d.log",
- cmd_args->volfile_server, tmp_ptr, port);
+ cmd_args->volfile_server,
+ cmd_args->volfile_id, port);
}
done:
return ret;