Commit dd35fb35 authored by Marko Mäkelä's avatar Marko Mäkelä

Return uint16_t instead of ulint

parent 250ca1c1
...@@ -2697,14 +2697,13 @@ buf_LRU_print_instance( ...@@ -2697,14 +2697,13 @@ buf_LRU_print_instance(
const byte* frame; const byte* frame;
case BUF_BLOCK_FILE_PAGE: case BUF_BLOCK_FILE_PAGE:
frame = buf_block_get_frame((buf_block_t*) bpage); frame = buf_block_get_frame((buf_block_t*) bpage);
fprintf(stderr, "\ntype " ULINTPF fprintf(stderr, "\ntype %u index id " IB_ID_FMT "\n",
" index id " IB_ID_FMT "\n",
fil_page_get_type(frame), fil_page_get_type(frame),
btr_page_get_index_id(frame)); btr_page_get_index_id(frame));
break; break;
case BUF_BLOCK_ZIP_PAGE: case BUF_BLOCK_ZIP_PAGE:
frame = bpage->zip.data; frame = bpage->zip.data;
fprintf(stderr, "\ntype " ULINTPF " size " ULINTPF fprintf(stderr, "\ntype %u size " ULINTPF
" index id " IB_ID_FMT "\n", " index id " IB_ID_FMT "\n",
fil_page_get_type(frame), fil_page_get_type(frame),
bpage->size.physical(), bpage->size.physical(),
......
...@@ -1321,9 +1321,8 @@ fil_page_reset_type( ...@@ -1321,9 +1321,8 @@ fil_page_reset_type(
@param[in] page file page @param[in] page file page
@return page type */ @return page type */
inline inline
ulint uint16_t
fil_page_get_type( fil_page_get_type(const byte* page)
const byte* page)
{ {
return(mach_read_from_2(page + FIL_PAGE_TYPE)); return(mach_read_from_2(page + FIL_PAGE_TYPE));
} }
......
/***************************************************************************** /*****************************************************************************
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2013, 2016, MariaDB Corporation Copyright (c) 2013, 2017, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
...@@ -264,7 +264,7 @@ page_set_ssn_id( ...@@ -264,7 +264,7 @@ page_set_ssn_id(
/*************************************************************//** /*************************************************************//**
Reads the given header field. */ Reads the given header field. */
UNIV_INLINE UNIV_INLINE
ulint uint16_t
page_header_get_field( page_header_get_field(
/*==================*/ /*==================*/
const page_t* page, /*!< in: page */ const page_t* page, /*!< in: page */
......
...@@ -170,7 +170,7 @@ page_set_ssn_id( ...@@ -170,7 +170,7 @@ page_set_ssn_id(
/*************************************************************//** /*************************************************************//**
Reads the given header field. */ Reads the given header field. */
UNIV_INLINE UNIV_INLINE
ulint uint16_t
page_header_get_field( page_header_get_field(
/*==================*/ /*==================*/
const page_t* page, /*!< in: page */ const page_t* page, /*!< in: page */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment