From 9e67fd90e0df32b9a450632566855339b133d3a6 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Thu, 25 Nov 2010 02:26:26 +0000 Subject: mgmt/glusterd: Move .cmd_log_history to log directory Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 2154 (Move .cmd_log_history to log directory) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2154 --- xlators/mgmt/glusterd/src/glusterd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/mgmt/glusterd/src/glusterd.c') diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c index 223ab4265..a01896622 100644 --- a/xlators/mgmt/glusterd/src/glusterd.c +++ b/xlators/mgmt/glusterd/src/glusterd.c @@ -274,7 +274,8 @@ init (xlator_t *this) gf_log (this->name, GF_LOG_NORMAL, "Using %s as working directory", dirname); - snprintf (cmd_log_filename, PATH_MAX,"%s/.cmd_log_history",dirname); + snprintf (cmd_log_filename, PATH_MAX,"%s/.cmd_log_history", + DEFAULT_LOG_FILE_DIRECTORY); ret = gf_cmd_log_init (cmd_log_filename); if (ret == -1) { -- cgit