MCPcopy Create free account
hub / github.com/MariaDB/server / log_current_query

Function log_current_query

plugin/server_audit/server_audit.cc:2269–2283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2267
2268
2269static void log_current_query(MYSQL_THD thd)
2270{
2271 struct connection_info *cn;
2272 if (!thd)
2273 return;
2274 cn= get_loc_info(thd);
2275 if (!ci_needs_setup(cn) && cn->query_length)
2276 {
2277 cn->log_always= 1;
2278 log_statement_ex(cn, cn->query_time, thd_get_thread_id(thd),
2279 thd_sql_command(thd), cn->query, cn->query_length, 0,
2280 "QUERY", 0);
2281 cn->log_always= 0;
2282 }
2283}
2284
2285
2286static void update_file_path(MYSQL_THD thd, st_mysql_sys_var *, void *,

Callers 3

update_file_pathFunction · 0.85
update_output_typeFunction · 0.85
update_loggingFunction · 0.85

Calls 5

get_loc_infoFunction · 0.85
ci_needs_setupFunction · 0.85
log_statement_exFunction · 0.85
thd_get_thread_idFunction · 0.85
thd_sql_commandFunction · 0.85

Tested by

no test coverage detected