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
43becedf
Commit
43becedf
authored
Oct 25, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Cast void* pointers to byte* when doing pointer arithmetics.
parent
0d6bfafd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
btr/btr0cur.c
btr/btr0cur.c
+1
-0
buf/buf0buddy.c
buf/buf0buddy.c
+2
-2
buf/buf0buf.c
buf/buf0buf.c
+1
-1
No files found.
btr/btr0cur.c
View file @
43becedf
...
@@ -3915,6 +3915,7 @@ btr_store_big_rec_extern_fields(
...
@@ -3915,6 +3915,7 @@ btr_store_big_rec_extern_fields(
mlog_write_string
(
page
+
FIL_PAGE_DATA
mlog_write_string
(
page
+
FIL_PAGE_DATA
+
BTR_BLOB_HDR_SIZE
,
+
BTR_BLOB_HDR_SIZE
,
(
const
byte
*
)
big_rec_vec
->
fields
[
i
].
data
big_rec_vec
->
fields
[
i
].
data
+
big_rec_vec
->
fields
[
i
].
len
+
big_rec_vec
->
fields
[
i
].
len
-
extern_len
,
-
extern_len
,
...
...
buf/buf0buddy.c
View file @
43becedf
...
@@ -549,9 +549,9 @@ buf_buddy_relocate(
...
@@ -549,9 +549,9 @@ buf_buddy_relocate(
mach_read_from_4() calls here will only trigger bogus
mach_read_from_4() calls here will only trigger bogus
Valgrind memcheck warnings in UNIV_DEBUG_VALGRIND builds. */
Valgrind memcheck warnings in UNIV_DEBUG_VALGRIND builds. */
bpage
=
buf_page_hash_get
(
bpage
=
buf_page_hash_get
(
mach_read_from_4
(
src
mach_read_from_4
(
(
const
byte
*
)
src
+
FIL_PAGE_ARCH_LOG_NO_OR_SPACE_ID
),
+
FIL_PAGE_ARCH_LOG_NO_OR_SPACE_ID
),
mach_read_from_4
(
src
mach_read_from_4
(
(
const
byte
*
)
src
+
FIL_PAGE_OFFSET
));
+
FIL_PAGE_OFFSET
));
if
(
!
bpage
||
bpage
->
zip
.
data
!=
src
)
{
if
(
!
bpage
||
bpage
->
zip
.
data
!=
src
)
{
...
...
buf/buf0buf.c
View file @
43becedf
...
@@ -2366,7 +2366,7 @@ buf_page_init(
...
@@ -2366,7 +2366,7 @@ buf_page_init(
" in the hash table: %p, %p
\n
"
,
" in the hash table: %p, %p
\n
"
,
(
ulong
)
space
,
(
ulong
)
space
,
(
ulong
)
offset
,
(
ulong
)
offset
,
hash_page
,
block
);
(
const
void
*
)
hash_page
,
(
const
void
*
)
block
);
#if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG
#if defined UNIV_DEBUG || defined UNIV_BUF_DEBUG
mutex_exit
(
&
block
->
mutex
);
mutex_exit
(
&
block
->
mutex
);
mutex_exit
(
&
buf_pool
->
mutex
);
mutex_exit
(
&
buf_pool
->
mutex
);
...
...
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