diff options
Diffstat (limited to 'storage/perfschema/table_events_waits_summary.cc')
-rw-r--r-- | storage/perfschema/table_events_waits_summary.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/storage/perfschema/table_events_waits_summary.cc b/storage/perfschema/table_events_waits_summary.cc index 03477f6d542..71ae6eae685 100644 --- a/storage/perfschema/table_events_waits_summary.cc +++ b/storage/perfschema/table_events_waits_summary.cc @@ -1,4 +1,4 @@ -/* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, @@ -26,12 +26,13 @@ */ #include "my_global.h" -#include "my_pthread.h" +#include "my_thread.h" #include "pfs_instr_class.h" #include "pfs_column_types.h" #include "pfs_column_values.h" #include "table_events_waits_summary.h" #include "pfs_global.h" +#include "field.h" THR_LOCK table_events_waits_summary_by_instance::m_table_lock; @@ -40,11 +41,10 @@ table_events_waits_summary_by_instance::m_share= { { C_STRING_WITH_LEN("events_waits_summary_by_instance") }, &pfs_truncatable_acl, - &table_events_waits_summary_by_instance::create, + table_events_waits_summary_by_instance::create, NULL, /* write_row */ - &table_events_waits_summary_by_instance::delete_all_rows, - NULL, /* get_row_count */ - 1000, /* records */ + table_events_waits_summary_by_instance::delete_all_rows, + table_all_instr::get_row_count, sizeof(pos_all_instr), &m_table_lock, { C_STRING_WITH_LEN("CREATE TABLE events_waits_summary_by_instance(" @@ -54,7 +54,8 @@ table_events_waits_summary_by_instance::m_share= "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)") } + "MAX_TIMER_WAIT BIGINT unsigned not null)") }, + false /* perpetual */ }; PFS_engine_table* table_events_waits_summary_by_instance::create(void) @@ -78,7 +79,7 @@ void table_events_waits_summary_by_instance const void *object_instance_begin, PFS_single_stat *pfs_stat) { - pfs_lock lock; + pfs_optimistic_state lock; m_row_exists= false; /* |