mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
MDEV-21133 follow-up: More my_assume_aligned hints
fsp0pagecompress.h: Remove. Invoke fil_page_get_type() and FSP_FLAGS_GET_PAGE_COMPRESSION_LEVEL directly. log_block_get_flush_bit(), log_block_set_flush_bit(): Access the byte directly. dict_sys_read_row_id(): Remove (unused function).
This commit is contained in:
parent
0781c91d28
commit
ba573c4736
14 changed files with 82 additions and 205 deletions
|
|
@ -307,11 +307,10 @@ inline bool xdes_is_free(const xdes_t *descr, ulint offset)
|
|||
@param[in] page first page of a tablespace
|
||||
@param[in] field the header field
|
||||
@return the contents of the header field */
|
||||
inline
|
||||
ulint
|
||||
fsp_header_get_field(const page_t* page, ulint field)
|
||||
inline uint32_t fsp_header_get_field(const page_t* page, ulint field)
|
||||
{
|
||||
return(mach_read_from_4(FSP_HEADER_OFFSET + field + page));
|
||||
return mach_read_from_4(FSP_HEADER_OFFSET + field +
|
||||
my_assume_aligned<UNIV_ZIP_SIZE_MIN>(page));
|
||||
}
|
||||
|
||||
/** Read the flags from the tablespace header page.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue