mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
Cleanup: Remove fil_space_t::magic_n
This commit is contained in:
parent
c86d1daa62
commit
b29a8118dd
2 changed files with 1 additions and 11 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue