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:
Marko Mäkelä 2019-12-04 20:01:04 +02:00
commit 504202bd7f
7 changed files with 62 additions and 86 deletions

View file

@ -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