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

Method log_command

sql/log.cc:1251–1269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1249
1250
1251bool LOGGER::log_command(THD *thd, enum enum_server_command command)
1252{
1253 /*
1254 Log command if we have at least one log event handler enabled and want
1255 to log this king of commands
1256 */
1257 if (*general_log_handler_list && (what_to_log & (1L << (uint) command)))
1258 {
1259 if ((thd->variables.option_bits & OPTION_LOG_OFF))
1260 {
1261 /* No logging */
1262 return FALSE;
1263 }
1264
1265 return TRUE;
1266 }
1267
1268 return FALSE;
1269}
1270
1271
1272bool general_log_print(THD *thd, enum enum_server_command command,

Callers 2

general_log_printMethod · 0.80
general_log_writeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected