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:
Marko Mäkelä 2020-05-07 12:25:00 +03:00
commit ba573c4736
14 changed files with 82 additions and 205 deletions

View file

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