From f2e21d130c48f036b4823d1c89ff6555b496b6a9 Mon Sep 17 00:00:00 2001 From: Zhengguo Yang <780531911@qq.com> Date: Thu, 4 Aug 2022 14:36:40 +0800 Subject: [PATCH] Update src/logging.cc Co-authored-by: Sergiu Deitsch --- src/logging.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging.cc b/src/logging.cc index 2bd29d4df..208f0b431 100644 --- a/src/logging.cc +++ b/src/logging.cc @@ -1183,7 +1183,7 @@ void LogFileObject::CheckHistoryFileNum() { DT_LNK == entry->d_type) { continue; } - std::string filename = std::string(entry->d_name); + std::string filename = entry->d_name; if (filename.find(symlink_basename_ + '.' + LogSeverityNames[severity_]) == 0) { std::string filepath = log_dirs[0] + "/" + filename;