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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
aa852a3b
Commit
aa852a3b
authored
May 10, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Remove GCC 4.0.4 warnings from
make AM_CFLAGS='-std=c89 -Wall -W -pedantic'
parent
3547f43d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
11 deletions
+16
-11
btr/btr0btr.c
btr/btr0btr.c
+1
-1
buf/buf0buf.c
buf/buf0buf.c
+7
-4
include/rem0rec.ic
include/rem0rec.ic
+5
-4
page/page0zip.c
page/page0zip.c
+1
-1
rem/rem0rec.c
rem/rem0rec.c
+2
-1
No files found.
btr/btr0btr.c
View file @
aa852a3b
...
...
@@ -1087,8 +1087,8 @@ btr_root_raise_and_insert(
if
(
UNIV_UNLIKELY
(
!
page_copy_rec_list_end
(
new_page
,
new_page_zip
,
page_get_infimum_rec
(
root
),
cursor
->
index
,
mtr
)))
{
ut_a
(
new_page_zip
);
byte
page_no
[
4
];
ut_a
(
new_page_zip
);
/* Copy the pages byte for byte and restore the page offset.
This cannot fail, because the compressed page
...
...
buf/buf0buf.c
View file @
aa852a3b
...
...
@@ -1959,6 +1959,9 @@ buf_page_io_complete(
io_type
=
block
->
io_fix
;
if
(
io_type
==
BUF_IO_READ
)
{
ulint
read_page_no
;
ulint
read_space_id
;
if
(
block
->
page_zip
.
size
)
{
ut_a
(
block
->
space
);
...
...
@@ -1977,9 +1980,9 @@ buf_page_io_complete(
/* If this page is not uninitialized and not in the
doublewrite buffer, then the page number and space id
should be the same as in block. */
ulint
read_page_no
=
mach_read_from_4
((
block
->
frame
)
read_page_no
=
mach_read_from_4
((
block
->
frame
)
+
FIL_PAGE_OFFSET
);
ulint
read_space_id
=
mach_read_from_4
((
block
->
frame
)
read_space_id
=
mach_read_from_4
((
block
->
frame
)
+
FIL_PAGE_ARCH_LOG_NO_OR_SPACE_ID
);
if
(
!
block
->
space
&&
trx_doublewrite_page_inside
(
...
...
include/rem0rec.ic
View file @
aa852a3b
...
...
@@ -269,12 +269,13 @@ rec_get_next_ptr(
+ ut_align_offset(rec, UNIV_PAGE_SIZE)
< UNIV_PAGE_SIZE);
#endif
return(ut_align_down(rec, UNIV_PAGE_SIZE)
return(
(byte*)
ut_align_down(rec, UNIV_PAGE_SIZE)
+ ut_align_offset(rec + field_value, UNIV_PAGE_SIZE));
} else {
ut_ad(field_value < UNIV_PAGE_SIZE);
return(ut_align_down(rec, UNIV_PAGE_SIZE) + field_value);
return((byte*) ut_align_down(rec, UNIV_PAGE_SIZE)
+ field_value);
}
}
...
...
@@ -362,11 +363,11 @@ rec_set_next_offs_new(
rec_t* rec, /* in/out: new-style physical record */
ulint next) /* in: offset of the next record */
{
ulint field_value;
ut_ad(rec);
ut_ad(UNIV_PAGE_SIZE > next);
ulint field_value;
if (UNIV_UNLIKELY(!next)) {
field_value = 0;
} else {
...
...
page/page0zip.c
View file @
aa852a3b
...
...
@@ -507,7 +507,7 @@ page_zip_free(
void
*
opaque
__attribute__
((
unused
)),
void
*
address
)
{
return
(
ut_free
(
address
)
);
ut_free
(
address
);
}
#if defined UNIV_DEBUG || defined UNIV_ZIP_DEBUG
...
...
rem/rem0rec.c
View file @
aa852a3b
...
...
@@ -870,9 +870,10 @@ rec_set_field_extern_bits(
rec_set_field_extern_bits_new
(
rec
,
index
,
offsets
,
vec
,
n_fields
);
}
else
{
ut_a
(
!
rec_get_1byte_offs_flag
(
rec
));
ulint
i
;
ut_a
(
!
rec_get_1byte_offs_flag
(
rec
));
for
(
i
=
0
;
i
<
n_fields
;
i
++
)
{
rec_set_nth_field_extern_bit_old
(
rec
,
vec
[
i
]);
if
(
offsets
)
{
...
...
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