summaryrefslogtreecommitdiff
path: root/storage/perfschema/table_events_statements.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/perfschema/table_events_statements.cc')
-rw-r--r--storage/perfschema/table_events_statements.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/storage/perfschema/table_events_statements.cc b/storage/perfschema/table_events_statements.cc
index 1fb02eddc48..5e30f39c785 100644
--- a/storage/perfschema/table_events_statements.cc
+++ b/storage/perfschema/table_events_statements.cc
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2010, 2021, Oracle and/or its affiliates.
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,
@@ -377,7 +377,7 @@ int table_events_statements_common::read_row_values(TABLE *table,
return HA_ERR_RECORD_DELETED;
/* Set the null bits */
- DBUG_ASSERT(table->s->null_bytes == 3);
+ assert(table->s->null_bytes == 3);
buf[0]= 0;
buf[1]= 0;
buf[2]= 0;
@@ -566,7 +566,7 @@ int table_events_statements_common::read_row_values(TABLE *table,
set_field_ulong(f, m_row.m_nesting_event_level);
break;
default:
- DBUG_ASSERT(false);
+ assert(false);
}
}
}
@@ -659,7 +659,7 @@ int table_events_statements_current::rnd_pos(const void *pos)
return HA_ERR_RECORD_DELETED;
}
- DBUG_ASSERT(m_pos.m_index_2 < statement_stack_max);
+ assert(m_pos.m_index_2 < statement_stack_max);
statement= &pfs_thread->m_statement_stack[m_pos.m_index_2];
@@ -781,13 +781,13 @@ int table_events_statements_history::rnd_pos(const void *pos)
PFS_thread *pfs_thread;
PFS_events_statements *statement;
- DBUG_ASSERT(events_statements_history_per_thread != 0);
+ assert(events_statements_history_per_thread != 0);
set_position(pos);
pfs_thread= global_thread_container.get(m_pos.m_index_1);
if (pfs_thread != NULL)
{
- DBUG_ASSERT(m_pos.m_index_2 < events_statements_history_per_thread);
+ assert(m_pos.m_index_2 < events_statements_history_per_thread);
if ( ! pfs_thread->m_statements_history_full &&
(m_pos.m_index_2 >= pfs_thread->m_statements_history_index))