Patchwork [BUG:2154] mgmt/glusterd: Move .cmd_log_history to log directory

login
register
Submitter Vijay Bellur
Date 2010-11-25 07:56:26
Message ID <20101125075626.GA14739@dev.gluster.com>
Download mbox | patch
Permalink /patch/5781/
State Accepted
Headers show

Comments

Vijay Bellur - 2010-11-25 07:56:26
Signed-off-by: Vijay Bellur <vijay@gluster.com>
---
 xlators/mgmt/glusterd/src/glusterd.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index 223ab42..a018966 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) {