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
fc17efc2
Commit
fc17efc2
authored
Apr 14, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler warnings
parent
d364e64a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
23 deletions
+10
-23
storage/innobase/os/os0file.c
storage/innobase/os/os0file.c
+1
-2
storage/maria/ma_check.c
storage/maria/ma_check.c
+4
-10
storage/maria/ma_checkpoint.c
storage/maria/ma_checkpoint.c
+1
-3
storage/maria/ma_rt_split.c
storage/maria/ma_rt_split.c
+4
-8
No files found.
storage/innobase/os/os0file.c
View file @
fc17efc2
...
...
@@ -1369,7 +1369,6 @@ os_file_set_nocache(
#endif
static
int
os_file_set_atomic_writes
(
os_file_t
file
,
const
char
*
name
)
{
static
int
first_time
=
1
;
int
atomic_option
=
1
;
int
ret
=
ioctl
(
file
,
DFS_IOCTL_ATOMIC_WRITE_SET
,
&
atomic_option
);
...
...
@@ -2027,7 +2026,7 @@ os_file_set_size(
"InnoDB: Error: preallocating data for"
" file %s failed at
\n
"
"InnoDB: offset 0 size %lld %lld. Operating system"
" error number %
llu
.
\n
"
" error number %
d
.
\n
"
"InnoDB: Check that the disk is not full"
" or a disk quota exceeded.
\n
"
"InnoDB: Some operating system error numbers"
...
...
storage/maria/ma_check.c
View file @
fc17efc2
...
...
@@ -1246,17 +1246,13 @@ static int check_dynamic_record(HA_CHECK *param, MARIA_HA *info, int extend,
{
MARIA_BLOCK_INFO
block_info
;
MARIA_SHARE
*
share
=
info
->
s
;
my_off_t
start_recpos
,
start_block
,
pos
;
uchar
*
to
;
ulong
left_length
;
my_off_t
UNINIT_VAR
(
start_recpos
)
,
start_block
,
pos
;
uchar
*
UNINIT_VAR
(
to
)
;
ulong
UNINIT_VAR
(
left_length
)
;
uint
b_type
;
char
llbuff
[
22
],
llbuff2
[
22
],
llbuff3
[
22
];
DBUG_ENTER
(
"check_dynamic_record"
);
LINT_INIT
(
left_length
);
LINT_INIT
(
start_recpos
);
LINT_INIT
(
to
);
pos
=
0
;
while
(
pos
<
share
->
state
.
state
.
data_file_length
)
{
...
...
@@ -1847,10 +1843,8 @@ static int check_block_record(HA_CHECK *param, MARIA_HA *info, int extend,
pos
<
share
->
state
.
state
.
data_file_length
;
pos
+=
block_size
,
page
++
)
{
uint
row_count
,
real_row_count
,
empty_space
,
page_type
,
bitmap_pattern
;
uint
UNINIT_VAR
(
row_count
)
,
real_row_count
,
empty_space
,
page_type
,
bitmap_pattern
;
uint
bitmap_for_page
;
LINT_INIT
(
row_count
);
LINT_INIT
(
empty_space
);
if
(
_ma_killed_ptr
(
param
))
{
...
...
storage/maria/ma_checkpoint.c
View file @
fc17efc2
...
...
@@ -758,13 +758,11 @@ static int collect_tables(LEX_STRING *str, LSN checkpoint_start_log_horizon)
struct
st_state_copy
*
state_copies
=
NULL
,
/**< fixed-size cache of states */
*
state_copies_end
,
/**< cache ends here */
*
state_copy
;
/**< iterator in cache */
TRANSLOG_ADDRESS
state_copies_horizon
;
/**< horizon of states' _copies_ */
TRANSLOG_ADDRESS
UNINIT_VAR
(
state_copies_horizon
)
;
/**< horizon of states' _copies_ */
struct
st_filter_param
filter_param
;
PAGECACHE_FLUSH_FILTER
filter
;
DBUG_ENTER
(
"collect_tables"
);
LINT_INIT
(
state_copies_horizon
);
/* let's make a list of distinct shares */
mysql_mutex_lock
(
&
THR_LOCK_maria
);
for
(
nb
=
0
,
pos
=
maria_open_list
;
pos
;
pos
=
pos
->
next
)
...
...
storage/maria/ma_rt_split.c
View file @
fc17efc2
...
...
@@ -185,18 +185,14 @@ static int split_maria_rtree_node(SplitStruct *node, int n_entries,
double
**
d_buffer
,
int
n_dim
)
{
SplitStruct
*
cur
;
SplitStruct
*
a
;
SplitStruct
*
b
;
SplitStruct
*
UNINIT_VAR
(
a
)
;
SplitStruct
*
UNINIT_VAR
(
b
)
;
double
*
g1
=
reserve_coords
(
d_buffer
,
n_dim
);
double
*
g2
=
reserve_coords
(
d_buffer
,
n_dim
);
SplitStruct
*
next
;
int
next_node
;
SplitStruct
*
UNINIT_VAR
(
next
)
;
int
UNINIT_VAR
(
next_node
)
;
int
i
;
SplitStruct
*
end
=
node
+
n_entries
;
LINT_INIT
(
a
);
LINT_INIT
(
b
);
LINT_INIT
(
next
);
LINT_INIT
(
next_node
);
if
(
all_size
<
min_size
*
2
)
{
...
...
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