summaryrefslogtreecommitdiff
path: root/storage/perfschema/table_events_waits_summary.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/perfschema/table_events_waits_summary.cc')
-rw-r--r--storage/perfschema/table_events_waits_summary.cc53
1 files changed, 8 insertions, 45 deletions
diff --git a/storage/perfschema/table_events_waits_summary.cc b/storage/perfschema/table_events_waits_summary.cc
index a7130c14a29..516b271669d 100644
--- a/storage/perfschema/table_events_waits_summary.cc
+++ b/storage/perfschema/table_events_waits_summary.cc
@@ -28,49 +28,6 @@
THR_LOCK table_events_waits_summary_by_instance::m_table_lock;
-static const TABLE_FIELD_TYPE ews_by_instance_field_types[]=
-{
- {
- { C_STRING_WITH_LEN("EVENT_NAME") },
- { C_STRING_WITH_LEN("varchar(128)") },
- { NULL, 0}
- },
- {
- { C_STRING_WITH_LEN("OBJECT_INSTANCE_BEGIN") },
- { C_STRING_WITH_LEN("bigint(20)") },
- { NULL, 0}
- },
- {
- { C_STRING_WITH_LEN("COUNT_STAR") },
- { C_STRING_WITH_LEN("bigint(20)") },
- { NULL, 0}
- },
- {
- { C_STRING_WITH_LEN("SUM_TIMER_WAIT") },
- { C_STRING_WITH_LEN("bigint(20)") },
- { NULL, 0}
- },
- {
- { C_STRING_WITH_LEN("MIN_TIMER_WAIT") },
- { C_STRING_WITH_LEN("bigint(20)") },
- { NULL, 0}
- },
- {
- { C_STRING_WITH_LEN("AVG_TIMER_WAIT") },
- { C_STRING_WITH_LEN("bigint(20)") },
- { NULL, 0}
- },
- {
- { C_STRING_WITH_LEN("MAX_TIMER_WAIT") },
- { C_STRING_WITH_LEN("bigint(20)") },
- { NULL, 0}
- }
-};
-
-TABLE_FIELD_DEF
-table_events_waits_summary_by_instance::m_field_def=
-{ 7, ews_by_instance_field_types, 0, (uint*) 0 };
-
PFS_engine_table_share
table_events_waits_summary_by_instance::m_share=
{
@@ -83,8 +40,14 @@ table_events_waits_summary_by_instance::m_share=
1000, /* records */
sizeof(pos_all_instr),
&m_table_lock,
- &m_field_def,
- false /* checked */
+ { C_STRING_WITH_LEN("CREATE TABLE events_waits_summary_by_instance("
+ "EVENT_NAME VARCHAR(128) not null,"
+ "OBJECT_INSTANCE_BEGIN BIGINT unsigned not null,"
+ "COUNT_STAR BIGINT unsigned not null,"
+ "SUM_TIMER_WAIT BIGINT unsigned not null,"
+ "MIN_TIMER_WAIT BIGINT unsigned not null,"
+ "AVG_TIMER_WAIT BIGINT unsigned not null,"
+ "MAX_TIMER_WAIT BIGINT unsigned not null)") }
};
PFS_engine_table* table_events_waits_summary_by_instance::create(void)