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
8d74d30d
Commit
8d74d30d
authored
Apr 15, 2020
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler warning
parent
f40ca33b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
storage/maria/ma_pagecrc.c
storage/maria/ma_pagecrc.c
+4
-4
No files found.
storage/maria/ma_pagecrc.c
View file @
8d74d30d
...
...
@@ -244,14 +244,14 @@ my_bool maria_page_crc_check_index(int res, PAGECACHE_IO_HOOK_ARGS *args)
pgcache_page_no_t
page_no
=
args
->
pageno
;
MARIA_SHARE
*
share
=
(
MARIA_SHARE
*
)
args
->
data
;
uint
length
=
_ma_get_page_used
(
share
,
page
);
if
(
res
)
{
return
1
;
}
if
(
length
>
share
->
block_size
-
CRC_SIZE
)
{
DBUG_PRINT
(
"error"
,
(
"Wrong page length: %u"
,
length
));
return
(
my_errno
=
HA_ERR_WRONG_CRC
);
my_errno
=
HA_ERR_WRONG_CRC
;
return
1
;
}
return
maria_page_crc_check
(
page
,
(
uint32
)
page_no
,
share
,
MARIA_NO_CRC_NORMAL_PAGE
,
...
...
@@ -260,7 +260,7 @@ my_bool maria_page_crc_check_index(int res, PAGECACHE_IO_HOOK_ARGS *args)
/**
@brief Maria pages dumm
e
read callback for temporary tables
@brief Maria pages dumm
y
read callback for temporary tables
@retval 0 OK
@retval 1 Error
...
...
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