summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-11-25 02:26:26 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-25 00:34:13 -0800
commit9e67fd90e0df32b9a450632566855339b133d3a6 (patch)
tree1ab4900f01584438fe54cf5f754afff9864aad07 /xlators
parentc56b9967a33b8bb106d37df0cf6979b340dbf950 (diff)
mgmt/glusterd: Move .cmd_log_history to log directory
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2154 (Move .cmd_log_history to log directory) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2154
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c3
1 files changed, 2 insertions, 1 deletions
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) {