mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
MDEV-21216: Remove fsp_header_get_space_id()
The function fsp_header_get_space_id() returns ulint instead of uint32_t, only to be able to complain that the two adjacent tablespace ID fields in the page differ. Remove the function, and merge the check to the callers. Also, make some more use of aligned_malloc().
This commit is contained in:
parent
2352f51625
commit
504202bd7f
7 changed files with 62 additions and 86 deletions
|
|
@ -302,14 +302,6 @@ inline bool xdes_is_free(const xdes_t *descr, ulint offset)
|
|||
#ifndef UNIV_INNOCHECKSUM
|
||||
/* @} */
|
||||
|
||||
/**********************************************************************//**
|
||||
Reads the space id from the first page of a tablespace.
|
||||
@return space id, ULINT UNDEFINED if error */
|
||||
ulint
|
||||
fsp_header_get_space_id(
|
||||
/*====================*/
|
||||
const page_t* page); /*!< in: first page of a tablespace */
|
||||
|
||||
/** Read a tablespace header field.
|
||||
@param[in] page first page of a tablespace
|
||||
@param[in] field the header field
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue