Skip to content

Commit

Permalink
feat(handler): change the default tianmu log path to $mysqlhome/data #…
Browse files Browse the repository at this point in the history
…609

[summary]
1. "log/tianmu.log" --> "tianmu_engine.log"
2. "trace.log" --> "tianmu_trace.log"
3. "query.log" --> "tianmu_query.log"
  • Loading branch information
hustjieke authored and mergify[bot] committed Nov 14, 2022
1 parent a656ae0 commit 1149a12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions storage/tianmu/handler/ha_tianmu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1149a12

Please sign in to comment.