summaryrefslogtreecommitdiff
path: root/storage/perfschema/pfs_lock.h
diff options
context:
space:
mode:
Diffstat (limited to 'storage/perfschema/pfs_lock.h')
-rw-r--r--storage/perfschema/pfs_lock.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/storage/perfschema/pfs_lock.h b/storage/perfschema/pfs_lock.h
index 3730e61ced7..4c1674c5e67 100644
--- a/storage/perfschema/pfs_lock.h
+++ b/storage/perfschema/pfs_lock.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2009, 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,
@@ -173,7 +173,7 @@ struct pfs_lock
{
uint32 copy= copy_version_state();
/* Make sure the record was ALLOCATED. */
- DBUG_ASSERT((copy & STATE_MASK) == PFS_LOCK_ALLOCATED);
+ assert((copy & STATE_MASK) == PFS_LOCK_ALLOCATED);
/* Keep the same version, set the DIRTY state */
uint32 new_val= (copy & VERSION_MASK) + PFS_LOCK_DIRTY;
/* We own the record, no need to use compare and swap. */
@@ -191,7 +191,7 @@ struct pfs_lock
void dirty_to_allocated(const pfs_dirty_state *copy)
{
/* Make sure the record was DIRTY. */
- DBUG_ASSERT((copy->m_version_state & STATE_MASK) == PFS_LOCK_DIRTY);
+ assert((copy->m_version_state & STATE_MASK) == PFS_LOCK_DIRTY);
/* Increment the version, set the ALLOCATED state */
uint32 new_val= (copy->m_version_state & VERSION_MASK) + VERSION_INC + PFS_LOCK_ALLOCATED;
@@ -234,7 +234,7 @@ struct pfs_lock
void dirty_to_free(const pfs_dirty_state *copy)
{
/* Make sure the record was DIRTY. */
- DBUG_ASSERT((copy->m_version_state & STATE_MASK) == PFS_LOCK_DIRTY);
+ assert((copy->m_version_state & STATE_MASK) == PFS_LOCK_DIRTY);
/* Keep the same version, set the FREE state */
uint32 new_val= (copy->m_version_state & VERSION_MASK) + PFS_LOCK_FREE;
@@ -254,7 +254,7 @@ struct pfs_lock
*/
uint32 copy= copy_version_state();
/* Make sure the record was ALLOCATED. */
- DBUG_ASSERT(((copy & STATE_MASK) == PFS_LOCK_ALLOCATED));
+ assert(((copy & STATE_MASK) == PFS_LOCK_ALLOCATED));
/* Keep the same version, set the FREE state */
uint32 new_val= (copy & VERSION_MASK) + PFS_LOCK_FREE;