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

Function general_log_write

sql/log.cc:1285–1293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1283}
1284
1285bool general_log_write(THD *thd, enum enum_server_command command,
1286 const char *query, uint query_length)
1287{
1288 /* Write the message to the log if we want to log this king of commands */
1289 if (logger.log_command(thd, command))
1290 return logger.general_log_write(thd, command, query, query_length);
1291
1292 return FALSE;
1293}
1294
1295/**
1296 Check if a string is a valid number.

Callers 1

general_log_printMethod · 0.85

Calls 2

log_commandMethod · 0.80
general_log_writeMethod · 0.80

Tested by

no test coverage detected