From 1149a12b962a94a8cbf56e532360418aac1b625b Mon Sep 17 00:00:00 2001 From: hustjieke Date: Thu, 10 Nov 2022 05:39:26 +0000 Subject: [PATCH] feat(handler): change the default tianmu log path to $mysqlhome/data #609 [summary] 1. "log/tianmu.log" --> "tianmu_engine.log" 2. "trace.log" --> "tianmu_trace.log" 3. "query.log" --> "tianmu_query.log" --- storage/tianmu/handler/ha_tianmu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/storage/tianmu/handler/ha_tianmu.cpp b/storage/tianmu/handler/ha_tianmu.cpp index 49f27eb4b..031496605 100644 --- a/storage/tianmu/handler/ha_tianmu.cpp +++ b/storage/tianmu/handler/ha_tianmu.cpp @@ -1858,10 +1858,10 @@ int rcbase_init_func(void *p) { ha_rcengine_ = nullptr; try { - std::string log_file = mysql_home_ptr; - log_setup(log_file + "/log/tianmu.log"); - rc_control_.addOutput(new system::FileOut(log_file + "/log/trace.log")); - rc_querylog_.addOutput(new system::FileOut(log_file + "/log/query.log")); + std::string log_file = mysql_real_data_home_ptr; + log_setup(log_file + "/tianmu_engine.log"); + rc_control_.addOutput(new system::FileOut(log_file + "/tianmu_trace.log")); + rc_querylog_.addOutput(new system::FileOut(log_file + "/tianmu_query.log")); // replace function gethostbyname,which is thread-unsafe addrinfo ai_hints;