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

Method open_query_log

sql/log.h:189–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187 ulonglong query_utime, ulonglong lock_utime, bool is_command,
188 const char *sql_text, uint sql_text_len);
189 bool open_query_log(const char *log_name)
190 {
191 char buf[FN_REFLEN];
192 return open(
193#ifdef HAVE_PSI_INTERFACE
194 key_file_query_log,
195#endif
196 generate_name(log_name, ".log", 0, buf),
197 LOG_NORMAL, 0, WRITE_CACHE, false);
198 }
199 int rotate(ulong max_size, bool *need_purge);
200 int new_file();
201

Callers 3

initMethod · 0.80
activate_log_handlerMethod · 0.80
reopen_general_logFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected