summaryrefslogtreecommitdiff
path: root/storage/innobase
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-06-06 11:54:17 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-06-06 11:54:17 +0300
commitb29a8118dd00c2269284793b63e2c5c6a34336d2 (patch)
tree5eaa5cbfa176a8cb5000f00c0c44c458dde5bcb6 /storage/innobase
parentc86d1daa620a7cc6f6f5189831f329217fc3e695 (diff)
downloadmariadb-git-b29a8118dd00c2269284793b63e2c5c6a34336d2.tar.gz
Cleanup: Remove fil_space_t::magic_n
Diffstat (limited to 'storage/innobase')
-rw-r--r--storage/innobase/fil/fil0fil.cc7
-rw-r--r--storage/innobase/include/fil0fil.h5
2 files changed, 1 insertions, 11 deletions
diff --git a/storage/innobase/fil/fil0fil.cc b/storage/innobase/fil/fil0fil.cc
index fa35f219d2c..b261fdce8b7 100644
--- a/storage/innobase/fil/fil0fil.cc
+++ b/storage/innobase/fil/fil0fil.cc
@@ -236,9 +236,7 @@ fil_space_get_by_id(
mysql_mutex_assert_owner(&fil_system.mutex);
HASH_SEARCH(hash, &fil_system.spaces, id,
- fil_space_t*, space,
- ut_ad(space->magic_n == FIL_SPACE_MAGIC_N),
- space->id == id);
+ fil_space_t*, space,, space->id == id);
return(space);
}
@@ -803,8 +801,6 @@ pfs_os_file_t fil_system_t::detach(fil_space_t *space, bool detach_handle)
else if (space == temp_space)
temp_space= nullptr;
- ut_a(space->magic_n == FIL_SPACE_MAGIC_N);
-
for (fil_node_t* node= UT_LIST_GET_FIRST(space->chain); node;
node= UT_LIST_GET_NEXT(chain, node))
if (node->is_open())
@@ -943,7 +939,6 @@ fil_space_t *fil_space_t::create(ulint id, ulint flags,
space->purpose = purpose;
space->flags = flags;
- space->magic_n = FIL_SPACE_MAGIC_N;
space->crypt_data = crypt_data;
space->n_pending.store(CLOSING, std::memory_order_relaxed);
diff --git a/storage/innobase/include/fil0fil.h b/storage/innobase/include/fil0fil.h
index 9df3a260152..73bb1ad32e9 100644
--- a/storage/innobase/include/fil0fil.h
+++ b/storage/innobase/include/fil0fil.h
@@ -434,8 +434,6 @@ public:
/** Stores last page freed lsn. Protected by freed_mutex */
lsn_t last_freed_lsn;
- ulint magic_n;/*!< FIL_SPACE_MAGIC_N */
-
/** @return whether doublewrite buffering is needed */
inline bool use_doublewrite() const;
@@ -1085,9 +1083,6 @@ private:
};
#ifndef UNIV_INNOCHECKSUM
-/** Value of fil_space_t::magic_n */
-#define FIL_SPACE_MAGIC_N 89472
-
/** File node of a tablespace or the log data space */
struct fil_node_t final
{