From 0e70f21ac3efb923264ebe7f9fc8e7e95eadb6fb Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 2 Jul 2010 21:29:22 -0700 Subject: [PATCH] debug: don't create rank symlink if log-file Signed-off-by: Sage Weil --- 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 dd198a21cd9b6..12b9b2d1276bf 100644 --- a/src/common/debug.cc +++ b/src/common/debug.cc @@ -195,7 +195,7 @@ int dout_create_rank_symlink(int64_t n) { Mutex::Locker l(_dout_lock); int r = 0; - if (log_to_file()) { + if (log_to_file() && !(g_conf.log_file && g_conf.log_file[0])) { if (_dout_need_open) _dout_open_log(); -- 2.39.5