From 3b9175d957efcf3e9a32123aa33e6f5d40eb3cec Mon Sep 17 00:00:00 2001 From: VilhoRaatikka Date: Mon, 29 Sep 2014 13:52:14 +0300 Subject: [PATCH] Clean up --- log_manager/log_manager.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/log_manager/log_manager.cc b/log_manager/log_manager.cc index 8e33aed16..cb7ae78f8 100644 --- a/log_manager/log_manager.cc +++ b/log_manager/log_manager.cc @@ -2063,8 +2063,8 @@ static bool logfile_init( * pointing to shm file is created and located to the file * directory. */ - if (store_shmem) { -#if 1 + if (store_shmem) + { char* c; pid_t pid = getpid(); int len = strlen(shm_pathname_prefix)+ @@ -2086,12 +2086,11 @@ static bool logfile_init( succp = false; goto file_create_fail; } -#else - logfile->lf_filepath = strdup(shm_pathname); -#endif logfile->lf_linkpath = strdup(fn->fn_logpath); logfile->lf_linkpath = add_slash(logfile->lf_linkpath); - } else { + } + else + { logfile->lf_filepath = strdup(fn->fn_logpath); } logfile->lf_filepath = add_slash(logfile->lf_filepath);