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
b3f1c60e
Commit
b3f1c60e
authored
Jun 27, 2005
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Many files:
Remove compiler warnings on Windows - Bug #11580
parent
1fdca62a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
19 deletions
+26
-19
innobase/btr/btr0btr.c
innobase/btr/btr0btr.c
+3
-3
innobase/btr/btr0cur.c
innobase/btr/btr0cur.c
+2
-2
innobase/fil/fil0fil.c
innobase/fil/fil0fil.c
+1
-1
innobase/ibuf/ibuf0ibuf.c
innobase/ibuf/ibuf0ibuf.c
+1
-1
innobase/log/log0recv.c
innobase/log/log0recv.c
+14
-7
innobase/os/os0file.c
innobase/os/os0file.c
+1
-1
innobase/page/page0page.c
innobase/page/page0page.c
+3
-3
innobase/row/row0upd.c
innobase/row/row0upd.c
+1
-1
No files found.
innobase/btr/btr0btr.c
View file @
b3f1c60e
...
...
@@ -143,7 +143,7 @@ btr_root_get(
root_page_no
=
dict_tree_get_page
(
tree
);
root
=
btr_page_get
(
space
,
root_page_no
,
RW_X_LATCH
,
mtr
);
ut_a
(
!!
page_is_comp
(
root
)
==
ut_a
(
(
ibool
)
!!
page_is_comp
(
root
)
==
UT_LIST_GET_FIRST
(
tree
->
tree_indexes
)
->
table
->
comp
);
return
(
root
);
...
...
@@ -2014,7 +2014,7 @@ btr_compress(
page
=
btr_cur_get_page
(
cursor
);
tree
=
btr_cur_get_tree
(
cursor
);
comp
=
page_is_comp
(
page
);
ut_a
(
!!
comp
==
cursor
->
index
->
table
->
comp
);
ut_a
(
(
ibool
)
!!
comp
==
cursor
->
index
->
table
->
comp
);
ut_ad
(
mtr_memo_contains
(
mtr
,
dict_tree_get_lock
(
tree
),
MTR_MEMO_X_LOCK
));
...
...
@@ -2508,7 +2508,7 @@ btr_index_rec_validate(
return
(
TRUE
);
}
if
(
UNIV_UNLIKELY
(
!!
page_is_comp
(
page
)
!=
index
->
table
->
comp
))
{
if
(
UNIV_UNLIKELY
(
(
ibool
)
!!
page_is_comp
(
page
)
!=
index
->
table
->
comp
))
{
btr_index_rec_validate_report
(
page
,
rec
,
index
);
fprintf
(
stderr
,
"InnoDB: compact flag=%lu, should be %lu
\n
"
,
(
ulong
)
!!
page_is_comp
(
page
),
...
...
innobase/btr/btr0cur.c
View file @
b3f1c60e
...
...
@@ -507,7 +507,7 @@ btr_cur_search_to_nth_level(
/* x-latch the page */
page
=
btr_page_get
(
space
,
page_no
,
RW_X_LATCH
,
mtr
);
ut_a
(
!!
page_is_comp
(
page
)
ut_a
(
(
ibool
)
!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
}
...
...
@@ -1385,7 +1385,7 @@ btr_cur_parse_update_in_place(
goto
func_exit
;
}
ut_a
(
!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ut_a
(
(
ibool
)
!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
rec
=
page
+
rec_offset
;
/* We do not need to reserve btr_search_latch, as the page is only
...
...
innobase/fil/fil0fil.c
View file @
b3f1c60e
...
...
@@ -4034,7 +4034,7 @@ fil_aio_wait(
if
(
os_aio_use_native_aio
)
{
srv_set_io_thread_op_info
(
segment
,
"native aio handle"
);
#ifdef WIN_ASYNC_IO
ret
=
os_aio_windows_handle
(
segment
,
0
,
(
void
**
)
&
fil_node
,
ret
=
os_aio_windows_handle
(
segment
,
0
,
&
fil_node
,
&
message
,
&
type
);
#elif defined(POSIX_ASYNC_IO)
ret
=
os_aio_posix_handle
(
segment
,
&
fil_node
,
&
message
);
...
...
innobase/ibuf/ibuf0ibuf.c
View file @
b3f1c60e
...
...
@@ -2810,7 +2810,7 @@ ibuf_insert_to_index_page(
ut_ad
(
ibuf_inside
());
ut_ad
(
dtuple_check_typed
(
entry
));
if
(
UNIV_UNLIKELY
(
index
->
table
->
comp
!=
!!
page_is_comp
(
page
)))
{
if
(
UNIV_UNLIKELY
(
index
->
table
->
comp
!=
(
ibool
)
!!
page_is_comp
(
page
)))
{
fputs
(
"InnoDB: Trying to insert a record from the insert buffer to an index page
\n
"
"InnoDB: but the 'compact' flag does not match!
\n
"
,
stderr
);
...
...
innobase/log/log0recv.c
View file @
b3f1c60e
...
...
@@ -768,7 +768,8 @@ recv_parse_or_apply_log_rec_body(
case
MLOG_REC_INSERT
:
case
MLOG_COMP_REC_INSERT
:
if
(
NULL
!=
(
ptr
=
mlog_parse_index
(
ptr
,
end_ptr
,
type
==
MLOG_COMP_REC_INSERT
,
&
index
)))
{
ut_a
(
!
page
||!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ut_a
(
!
page
||
(
ibool
)
!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ptr
=
page_cur_parse_insert_rec
(
FALSE
,
ptr
,
end_ptr
,
index
,
page
,
mtr
);
}
...
...
@@ -776,7 +777,8 @@ recv_parse_or_apply_log_rec_body(
case
MLOG_REC_CLUST_DELETE_MARK
:
case
MLOG_COMP_REC_CLUST_DELETE_MARK
:
if
(
NULL
!=
(
ptr
=
mlog_parse_index
(
ptr
,
end_ptr
,
type
==
MLOG_COMP_REC_CLUST_DELETE_MARK
,
&
index
)))
{
ut_a
(
!
page
||!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ut_a
(
!
page
||
(
ibool
)
!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ptr
=
btr_cur_parse_del_mark_set_clust_rec
(
ptr
,
end_ptr
,
index
,
page
);
}
...
...
@@ -796,7 +798,8 @@ recv_parse_or_apply_log_rec_body(
case
MLOG_REC_UPDATE_IN_PLACE
:
case
MLOG_COMP_REC_UPDATE_IN_PLACE
:
if
(
NULL
!=
(
ptr
=
mlog_parse_index
(
ptr
,
end_ptr
,
type
==
MLOG_COMP_REC_UPDATE_IN_PLACE
,
&
index
)))
{
ut_a
(
!
page
||!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ut_a
(
!
page
||
(
ibool
)
!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ptr
=
btr_cur_parse_update_in_place
(
ptr
,
end_ptr
,
page
,
index
);
}
...
...
@@ -806,7 +809,8 @@ recv_parse_or_apply_log_rec_body(
if
(
NULL
!=
(
ptr
=
mlog_parse_index
(
ptr
,
end_ptr
,
type
==
MLOG_COMP_LIST_END_DELETE
||
type
==
MLOG_COMP_LIST_START_DELETE
,
&
index
)))
{
ut_a
(
!
page
||!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ut_a
(
!
page
||
(
ibool
)
!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ptr
=
page_parse_delete_rec_list
(
type
,
ptr
,
end_ptr
,
index
,
page
,
mtr
);
}
...
...
@@ -814,7 +818,8 @@ recv_parse_or_apply_log_rec_body(
case
MLOG_LIST_END_COPY_CREATED
:
case
MLOG_COMP_LIST_END_COPY_CREATED
:
if
(
NULL
!=
(
ptr
=
mlog_parse_index
(
ptr
,
end_ptr
,
type
==
MLOG_COMP_LIST_END_COPY_CREATED
,
&
index
)))
{
ut_a
(
!
page
||!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ut_a
(
!
page
||
(
ibool
)
!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ptr
=
page_parse_copy_rec_list_to_created_page
(
ptr
,
end_ptr
,
index
,
page
,
mtr
);
}
...
...
@@ -822,7 +827,8 @@ recv_parse_or_apply_log_rec_body(
case
MLOG_PAGE_REORGANIZE
:
case
MLOG_COMP_PAGE_REORGANIZE
:
if
(
NULL
!=
(
ptr
=
mlog_parse_index
(
ptr
,
end_ptr
,
type
==
MLOG_COMP_PAGE_REORGANIZE
,
&
index
)))
{
ut_a
(
!
page
||!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ut_a
(
!
page
||
(
ibool
)
!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ptr
=
btr_parse_page_reorganize
(
ptr
,
end_ptr
,
index
,
page
,
mtr
);
}
...
...
@@ -855,7 +861,8 @@ recv_parse_or_apply_log_rec_body(
case
MLOG_REC_DELETE
:
case
MLOG_COMP_REC_DELETE
:
if
(
NULL
!=
(
ptr
=
mlog_parse_index
(
ptr
,
end_ptr
,
type
==
MLOG_COMP_REC_DELETE
,
&
index
)))
{
ut_a
(
!
page
||!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ut_a
(
!
page
||
(
ibool
)
!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ptr
=
page_cur_parse_delete_rec
(
ptr
,
end_ptr
,
index
,
page
,
mtr
);
}
...
...
innobase/os/os0file.c
View file @
b3f1c60e
...
...
@@ -3296,7 +3296,7 @@ os_aio(
ibool
retval
;
BOOL
ret
=
TRUE
;
DWORD
len
=
(
DWORD
)
n
;
void
*
dummy_mess1
;
struct
fil_node_struct
*
dummy_mess1
;
void
*
dummy_mess2
;
ulint
dummy_type
;
#endif
...
...
innobase/page/page0page.c
View file @
b3f1c60e
...
...
@@ -483,7 +483,7 @@ page_copy_rec_list_end_no_locks(
page_cur_move_to_next
(
&
cur1
);
}
ut_a
(
!!
page_is_comp
(
new_page
)
==
index
->
table
->
comp
);
ut_a
(
(
ibool
)
!!
page_is_comp
(
new_page
)
==
index
->
table
->
comp
);
ut_a
(
page_is_comp
(
new_page
)
==
page_is_comp
(
page
));
ut_a
(
mach_read_from_2
(
new_page
+
UNIV_PAGE_SIZE
-
10
)
==
(
ulint
)
(
page_is_comp
(
new_page
)
...
...
@@ -1347,7 +1347,7 @@ page_print_list(
ulint
*
offsets
=
offsets_
;
*
offsets_
=
(
sizeof
offsets_
)
/
sizeof
*
offsets_
;
ut_a
(
!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
ut_a
(
(
ibool
)
!!
page_is_comp
(
page
)
==
index
->
table
->
comp
);
fprintf
(
stderr
,
"--------------------------------
\n
"
...
...
@@ -1741,7 +1741,7 @@ page_validate(
ulint
*
offsets
=
NULL
;
ulint
*
old_offsets
=
NULL
;
if
(
!!
comp
!=
index
->
table
->
comp
)
{
if
(
(
ibool
)
!!
comp
!=
index
->
table
->
comp
)
{
fputs
(
"InnoDB: 'compact format' flag mismatch
\n
"
,
stderr
);
goto
func_exit2
;
}
...
...
innobase/row/row0upd.c
View file @
b3f1c60e
...
...
@@ -818,7 +818,7 @@ row_upd_build_difference_binary(
extern_bit
=
upd_ext_vec_contains
(
ext_vec
,
n_ext_vec
,
i
);
if
(
UNIV_UNLIKELY
(
extern_bit
==
!
rec_offs_nth_extern
(
offsets
,
i
))
(
ibool
)
!
rec_offs_nth_extern
(
offsets
,
i
))
||
!
dfield_data_is_binary_equal
(
dfield
,
len
,
data
))
{
upd_field
=
upd_get_nth_field
(
update
,
n_diff
);
...
...
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