summaryrefslogtreecommitdiff
path: root/storage/perfschema/table_setup_consumers.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2012-08-01 17:27:34 +0300
committerMichael Widenius <monty@askmonty.org>2012-08-01 17:27:34 +0300
commit1d0f70c2f894b27e98773a282871d32802f67964 (patch)
tree833e683e0ced29c4323c29a9d845703d4dfcd81b /storage/perfschema/table_setup_consumers.cc
parent5a86a61219826aadf8d08cbc447fe438f2bf50c3 (diff)
downloadmariadb-git-1d0f70c2f894b27e98773a282871d32802f67964.tar.gz
Temporary commit of merge of MariaDB 10.0-base and MySQL 5.6
Diffstat (limited to 'storage/perfschema/table_setup_consumers.cc')
-rw-r--r--storage/perfschema/table_setup_consumers.cc69
1 files changed, 51 insertions, 18 deletions
diff --git a/storage/perfschema/table_setup_consumers.cc b/storage/perfschema/table_setup_consumers.cc
index 601e0483b14..7b5441b684a 100644
--- a/storage/perfschema/table_setup_consumers.cc
+++ b/storage/perfschema/table_setup_consumers.cc
@@ -1,4 +1,4 @@
-/* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2008, 2011, 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 as published by
@@ -23,41 +23,70 @@
#include "table_setup_consumers.h"
#include "pfs_instr.h"
#include "pfs_events_waits.h"
+#include "pfs_digest.h"
-#define COUNT_SETUP_CONSUMERS 8
+#define COUNT_SETUP_CONSUMERS 12
static row_setup_consumers all_setup_consumers_data[COUNT_SETUP_CONSUMERS]=
{
{
- { C_STRING_WITH_LEN("events_waits_current") },
- &flag_events_waits_current
+ { C_STRING_WITH_LEN("events_stages_current") },
+ &flag_events_stages_current,
+ false
},
{
- { C_STRING_WITH_LEN("events_waits_history") },
- &flag_events_waits_history
+ { C_STRING_WITH_LEN("events_stages_history") },
+ &flag_events_stages_history,
+ false
},
{
- { C_STRING_WITH_LEN("events_waits_history_long") },
- &flag_events_waits_history_long
+ { C_STRING_WITH_LEN("events_stages_history_long") },
+ &flag_events_stages_history_long,
+ false
+ },
+ {
+ { C_STRING_WITH_LEN("events_statements_current") },
+ &flag_events_statements_current,
+ false
},
{
- { C_STRING_WITH_LEN("events_waits_summary_by_thread_by_event_name") },
- &flag_events_waits_summary_by_thread_by_event_name
+ { C_STRING_WITH_LEN("events_statements_history") },
+ &flag_events_statements_history,
+ false
},
{
- { C_STRING_WITH_LEN("events_waits_summary_by_event_name") },
- &flag_events_waits_summary_by_event_name
+ { C_STRING_WITH_LEN("events_statements_history_long") },
+ &flag_events_statements_history_long,
+ false
},
{
- { C_STRING_WITH_LEN("events_waits_summary_by_instance") },
- &flag_events_waits_summary_by_instance
+ { C_STRING_WITH_LEN("events_waits_current") },
+ &flag_events_waits_current,
+ false
},
{
- { C_STRING_WITH_LEN("file_summary_by_event_name") },
- &flag_file_summary_by_event_name
+ { C_STRING_WITH_LEN("events_waits_history") },
+ &flag_events_waits_history,
+ false
},
{
- { C_STRING_WITH_LEN("file_summary_by_instance") },
- &flag_file_summary_by_instance
+ { C_STRING_WITH_LEN("events_waits_history_long") },
+ &flag_events_waits_history_long,
+ false
+ },
+ {
+ { C_STRING_WITH_LEN("global_instrumentation") },
+ &flag_global_instrumentation,
+ true
+ },
+ {
+ { C_STRING_WITH_LEN("thread_instrumentation") },
+ &flag_thread_instrumentation,
+ false
+ },
+ {
+ { C_STRING_WITH_LEN("statements_digest") },
+ &flag_statements_digest,
+ false
}
};
@@ -89,6 +118,7 @@ table_setup_consumers::m_share=
&table_setup_consumers::create,
NULL, /* write_row */
NULL, /* delete_all_rows */
+ NULL, /* get_row_count */
COUNT_SETUP_CONSUMERS, /* records */
sizeof(PFS_simple_index), /* ref length */
&m_table_lock,
@@ -205,6 +235,9 @@ int table_setup_consumers::update_row_values(TABLE *table,
}
}
+ if (m_row->m_refresh)
+ update_instruments_derived_flags();
+
return 0;
}