35 #include <arpa/inet.h>
37 #include "my_global.h"
38 #include "my_compiler.h"
130 {
return m_lock.get_version(); }
135 char m_filename[FN_REFLEN];
182 if (m_has_io_stats && m_has_lock_stats)
184 safe_aggregate(& m_table_stat, m_share);
185 m_has_io_stats=
false;
186 m_has_lock_stats=
false;
188 else if (m_has_io_stats)
190 safe_aggregate_io(& m_table_stat, m_share);
191 m_has_io_stats=
false;
193 else if (m_has_lock_stats)
195 safe_aggregate_lock(& m_table_stat, m_share);
196 m_has_lock_stats=
false;
207 void sanitized_aggregate(
void);
213 void sanitized_aggregate_io(
void);
219 void sanitized_aggregate_lock(
void);
245 {
return m_lock.get_version(); }
254 struct sockaddr_storage m_sock_addr;
285 #define WAIT_STACK_LOGICAL_SIZE 5
292 #define WAIT_STACK_BOTTOM 1
297 #define WAIT_STACK_SIZE (WAIT_STACK_BOTTOM + WAIT_STACK_LOGICAL_SIZE)
307 #define PFS_MAX_ALLOC_RETRY 1000
310 #define PFS_MAX_SCAN_PASS 2
328 void init(uint random, uint max_size);
335 {
return (m_pass < m_pass_max); }
345 {
return m_first[m_pass]; }
349 {
return m_last[m_pass]; }
479 char m_username[USERNAME_LENGTH];
489 char m_hostname[HOSTNAME_LENGTH];
499 char m_dbname[NAME_LEN];
539 void reset_session_connect_attrs();
580 ulonglong processlist_id);
585 const char *filename, uint len,
bool create);
590 const void *identity);
595 const struct sockaddr *addr,
662 void aggregate_thread_waits(
PFS_thread *thread,
666 void aggregate_thread_stages(
PFS_thread *thread,
670 void aggregate_thread_statements(
PFS_thread *thread,
674 void clear_thread_account(
PFS_thread *thread);