From 7fbe16559b307aa3a9fdf16b17ec8821557cacaa Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 27 Jul 2010 11:20:02 -0700 Subject: [PATCH] debug: no name symlink when explicit --log-file --- src/common/debug.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/debug.cc b/src/common/debug.cc index a252d7cbaa6c1..4c06a469349d0 100644 --- a/src/common/debug.cc +++ b/src/common/debug.cc @@ -108,7 +108,7 @@ static void rotate_file(const char *fn, int max) static int create_name_symlink() { int r = 0; - if (log_to_file() && g_conf.log_per_instance) { + if (log_to_file() && g_conf.log_per_instance && !(g_conf.log_file && g_conf.log_file[0])) { snprintf(_dout_name_symlink_path, sizeof(_dout_name_symlink_path), "%s/%s.%s", _dout_symlink_dir, g_conf.type, g_conf.id); -- 2.39.5