parent
00194ab4bb
commit
56462bd9d4
|
@ -383,24 +383,30 @@ static bool audit_open_tables(THD *thd, TABLE_LIST **start, uint *counter, uint
|
|||
|
||||
bool res;
|
||||
res = trampoline_open_tables (thd, start, counter, flags, prelocking_strategy);
|
||||
//only log if thread id or query id is non 0 (otherwise this is comming from startup activity)
|
||||
if(Audit_formatter::thd_inst_thread_id(thd) || Audit_formatter::thd_inst_query_id(thd))
|
||||
{
|
||||
ThdSesData thd_data (thd);
|
||||
audit(&thd_data);
|
||||
return res;
|
||||
|
||||
}
|
||||
|
||||
static unsigned int trampoline_open_tables_size =0;
|
||||
return res;
|
||||
}
|
||||
#else
|
||||
static int audit_open_tables(THD *thd, TABLE_LIST **start, uint *counter, uint flags)
|
||||
{
|
||||
bool res;
|
||||
res = trampoline_open_tables (thd, start, counter, flags);
|
||||
//only log if thread id or query id is non 0 (otherwise this is comming from startup activity)
|
||||
if(Audit_formatter::thd_inst_thread_id(thd) || Audit_formatter::thd_inst_query_id(thd))
|
||||
{
|
||||
ThdSesData thd_data (thd);
|
||||
audit(&thd_data);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
static unsigned int trampoline_open_tables_size =0;
|
||||
#endif
|
||||
static unsigned int trampoline_open_tables_size =0;
|
||||
|
||||
|
||||
|
||||
//called by log_slow_statement and general audit event caught by audit interface
|
||||
|
|
Loading…
Reference in New Issue