MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / fix_general_log_file

Function fix_general_log_file

sql/sys_vars.cc:1189–1193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1187 logger.get_log_file_handler()->open_query_log(name);
1188}
1189static bool fix_general_log_file(sys_var *self, THD *thd, enum_var_type type)
1190{
1191 return fix_log(&opt_logname, default_logfile_name, ".log", opt_log,
1192 reopen_general_log);
1193}
1194static Sys_var_charptr Sys_general_log_path(
1195 "general_log_file", "Log connections and queries to given file",
1196 GLOBAL_VAR(opt_logname), CMD_LINE(REQUIRED_ARG),

Callers

nothing calls this directly

Calls 1

fix_logFunction · 0.85

Tested by

no test coverage detected