Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
dd35fb35
Commit
dd35fb35
authored
Sep 13, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return uint16_t instead of ulint
parent
250ca1c1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
9 deletions
+7
-9
storage/innobase/buf/buf0lru.cc
storage/innobase/buf/buf0lru.cc
+2
-3
storage/innobase/include/fil0fil.h
storage/innobase/include/fil0fil.h
+2
-3
storage/innobase/include/page0page.h
storage/innobase/include/page0page.h
+2
-2
storage/innobase/include/page0page.ic
storage/innobase/include/page0page.ic
+1
-1
No files found.
storage/innobase/buf/buf0lru.cc
View file @
dd35fb35
...
...
@@ -2697,14 +2697,13 @@ buf_LRU_print_instance(
const
byte
*
frame
;
case
BUF_BLOCK_FILE_PAGE
:
frame
=
buf_block_get_frame
((
buf_block_t
*
)
bpage
);
fprintf
(
stderr
,
"
\n
type "
ULINTPF
" index id "
IB_ID_FMT
"
\n
"
,
fprintf
(
stderr
,
"
\n
type %u index id "
IB_ID_FMT
"
\n
"
,
fil_page_get_type
(
frame
),
btr_page_get_index_id
(
frame
));
break
;
case
BUF_BLOCK_ZIP_PAGE
:
frame
=
bpage
->
zip
.
data
;
fprintf
(
stderr
,
"
\n
type
"
ULINTPF
"
size "
ULINTPF
fprintf
(
stderr
,
"
\n
type
%u
size "
ULINTPF
" index id "
IB_ID_FMT
"
\n
"
,
fil_page_get_type
(
frame
),
bpage
->
size
.
physical
(),
...
...
storage/innobase/include/fil0fil.h
View file @
dd35fb35
...
...
@@ -1321,9 +1321,8 @@ fil_page_reset_type(
@param[in] page file page
@return page type */
inline
ulint
fil_page_get_type
(
const
byte
*
page
)
uint16_t
fil_page_get_type
(
const
byte
*
page
)
{
return
(
mach_read_from_2
(
page
+
FIL_PAGE_TYPE
));
}
...
...
storage/innobase/include/page0page.h
View file @
dd35fb35
/*****************************************************************************
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2013, 201
6, MariaDB Corporation
Copyright (c) 2013, 201
7, MariaDB Corporation.
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
...
...
@@ -264,7 +264,7 @@ page_set_ssn_id(
/*************************************************************//**
Reads the given header field. */
UNIV_INLINE
u
lin
t
u
int16_
t
page_header_get_field
(
/*==================*/
const
page_t
*
page
,
/*!< in: page */
...
...
storage/innobase/include/page0page.ic
View file @
dd35fb35
...
...
@@ -170,7 +170,7 @@ page_set_ssn_id(
/*************************************************************//**
Reads the given header field. */
UNIV_INLINE
u
lin
t
u
int16_
t
page_header_get_field(
/*==================*/
const page_t* page, /*!< in: page */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment