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
539a165b
Commit
539a165b
authored
Feb 20, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-12026: Fix type mismatch
Revert the type casts of
58e525e4
.
parent
58e525e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
extra/innochecksum.cc
extra/innochecksum.cc
+2
-2
storage/innobase/include/fil0fil.h
storage/innobase/include/fil0fil.h
+6
-6
No files found.
extra/innochecksum.cc
View file @
539a165b
...
...
@@ -282,7 +282,7 @@ static void init_page_size(const byte* buf)
+
FSP_SPACE_FLAGS
);
if
(
FSP_FLAGS_FCRC32_HAS_MARKER
(
flags
))
{
srv_page_size
=
(
ulong
)
fil_space_t
::
logical_size
(
flags
);
srv_page_size
=
fil_space_t
::
logical_size
(
flags
);
physical_page_size
=
srv_page_size
;
return
;
}
...
...
@@ -293,7 +293,7 @@ static void init_page_size(const byte* buf)
?
UNIV_ZIP_SIZE_SHIFT_MIN
-
1
+
ssize
:
UNIV_PAGE_SIZE_SHIFT_ORIG
;
srv_page_size
=
(
ulong
)
fil_space_t
::
logical_size
(
flags
);
srv_page_size
=
fil_space_t
::
logical_size
(
flags
);
physical_page_size
=
fil_space_t
::
physical_size
(
flags
);
}
...
...
storage/innobase/include/fil0fil.h
View file @
539a165b
...
...
@@ -272,7 +272,7 @@ struct fil_space_t {
@param flags tablespace flags (FSP_FLAGS)
@return the logical page size
@retval 0 if the flags are invalid */
static
u
lint
logical_size
(
ulint
flags
)
{
static
u
nsigned
logical_size
(
ulint
flags
)
{
ulint
page_ssize
=
0
;
...
...
@@ -298,7 +298,7 @@ struct fil_space_t {
@param flags tablespace flags (FSP_FLAGS)
@return the ROW_FORMAT=COMPRESSED page size
@retval 0 if ROW_FORMAT=COMPRESSED is not used */
static
u
lint
zip_size
(
ulint
flags
)
{
static
u
nsigned
zip_size
(
ulint
flags
)
{
if
(
full_crc32
(
flags
))
{
return
0
;
...
...
@@ -311,7 +311,7 @@ struct fil_space_t {
/** Determine the physical page size.
@param flags tablespace flags (FSP_FLAGS)
@return the physical page size */
static
u
lint
physical_size
(
ulint
flags
)
{
static
u
nsigned
physical_size
(
ulint
flags
)
{
if
(
full_crc32
(
flags
))
{
return
logical_size
(
flags
);
...
...
@@ -320,13 +320,13 @@ struct fil_space_t {
ulint
zip_ssize
=
FSP_FLAGS_GET_ZIP_SSIZE
(
flags
);
return
zip_ssize
?
(
UNIV_ZIP_SIZE_MIN
>>
1
)
<<
zip_ssize
:
srv_page_size
;
:
unsigned
(
srv_page_size
)
;
}
/** @return the ROW_FORMAT=COMPRESSED page size
@retval 0 if ROW_FORMAT=COMPRESSED is not used */
u
lint
zip_size
()
const
{
return
zip_size
(
flags
);
}
u
nsigned
zip_size
()
const
{
return
zip_size
(
flags
);
}
/** @return the physical page size */
u
lint
physical_size
()
const
{
return
physical_size
(
flags
);
}
u
nsigned
physical_size
()
const
{
return
physical_size
(
flags
);
}
/** Check whether the compression enabled in tablespace.
@param[in] flags tablespace flags */
static
bool
is_compressed
(
ulint
flags
)
{
...
...
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