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
b6a1d653
Commit
b6a1d653
authored
Mar 10, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler warnings
parent
0094b658
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
storage/connect/ha_connect.cc
storage/connect/ha_connect.cc
+3
-3
storage/innobase/log/log0crypt.cc
storage/innobase/log/log0crypt.cc
+2
-2
storage/innobase/os/os0file.cc
storage/innobase/os/os0file.cc
+1
-1
storage/xtradb/log/log0crypt.cc
storage/xtradb/log/log0crypt.cc
+2
-2
storage/xtradb/os/os0file.cc
storage/xtradb/os/os0file.cc
+1
-1
No files found.
storage/connect/ha_connect.cc
View file @
b6a1d653
...
@@ -1034,15 +1034,15 @@ char *GetListOption(PGLOBAL g, const char *opname,
...
@@ -1034,15 +1034,15 @@ char *GetListOption(PGLOBAL g, const char *opname,
pv
=
strchr
(
pk
,
'='
);
pv
=
strchr
(
pk
,
'='
);
if
(
pv
&&
(
!
pn
||
pv
<
pn
))
{
if
(
pv
&&
(
!
pn
||
pv
<
pn
))
{
n
=
MY_MIN
(
pv
-
pk
,
sizeof
(
key
)
-
1
);
n
=
MY_MIN
(
static_cast
<
size_t
>
(
pv
-
pk
)
,
sizeof
(
key
)
-
1
);
memcpy
(
key
,
pk
,
n
);
memcpy
(
key
,
pk
,
n
);
key
[
n
]
=
0
;
key
[
n
]
=
0
;
pv
++
;
pv
++
;
n
=
MY_MIN
((
pn
?
pn
-
pv
:
strlen
(
pv
)),
sizeof
(
val
)
-
1
);
n
=
MY_MIN
((
pn
?
pn
-
pv
:
strlen
(
pv
)),
sizeof
(
val
)
-
1
);
memcpy
(
val
,
pv
,
n
);
memcpy
(
val
,
pv
,
n
);
val
[
n
]
=
0
;
val
[
n
]
=
0
;
}
else
{
}
else
{
n
=
MY_MIN
((
pn
?
pn
-
pk
:
strlen
(
pk
)),
sizeof
(
key
)
-
1
);
n
=
MY_MIN
((
pn
?
pn
-
pk
:
strlen
(
pk
)),
sizeof
(
key
)
-
1
);
memcpy
(
key
,
pk
,
n
);
memcpy
(
key
,
pk
,
n
);
key
[
n
]
=
0
;
key
[
n
]
=
0
;
val
[
0
]
=
0
;
val
[
0
]
=
0
;
...
...
storage/innobase/log/log0crypt.cc
View file @
b6a1d653
...
@@ -145,11 +145,11 @@ log_crypt_print_checkpoint_keys(
...
@@ -145,11 +145,11 @@ log_crypt_print_checkpoint_keys(
if
(
crypt_info
.
size
())
{
if
(
crypt_info
.
size
())
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: redo log checkpoint:
%llu
[ chk key ]: "
,
"InnoDB: redo log checkpoint:
"
UINT64PF
"
[ chk key ]: "
,
checkpoint_no
);
checkpoint_no
);
for
(
size_t
i
=
0
;
i
<
crypt_info
.
size
();
i
++
)
{
for
(
size_t
i
=
0
;
i
<
crypt_info
.
size
();
i
++
)
{
struct
crypt_info_t
*
it
=
&
crypt_info
[
i
];
struct
crypt_info_t
*
it
=
&
crypt_info
[
i
];
fprintf
(
stderr
,
"[
%llu
%u ] "
,
fprintf
(
stderr
,
"[
"
UINT64PF
"
%u ] "
,
it
->
checkpoint_no
,
it
->
checkpoint_no
,
it
->
key_version
);
it
->
key_version
);
}
}
...
...
storage/innobase/os/os0file.cc
View file @
b6a1d653
...
@@ -6280,7 +6280,7 @@ os_file_trim(
...
@@ -6280,7 +6280,7 @@ os_file_trim(
srv_use_trim
=
FALSE
;
srv_use_trim
=
FALSE
;
ib_logf
(
IB_LOG_LEVEL_WARN
,
ib_logf
(
IB_LOG_LEVEL_WARN
,
"fallocate() failed with error %d."
"fallocate() failed with error %d."
" start:
%llu
len: "
ULINTPF
" payload: "
ULINTPF
"."
" start:
"
UINT64PF
"
len: "
ULINTPF
" payload: "
ULINTPF
"."
" Disabling fallocate for now."
,
" Disabling fallocate for now."
,
errno
,
off
,
ulint
(
trim_len
),
ulint
(
len
));
errno
,
off
,
ulint
(
trim_len
),
ulint
(
len
));
...
...
storage/xtradb/log/log0crypt.cc
View file @
b6a1d653
...
@@ -145,11 +145,11 @@ log_crypt_print_checkpoint_keys(
...
@@ -145,11 +145,11 @@ log_crypt_print_checkpoint_keys(
if
(
crypt_info
.
size
())
{
if
(
crypt_info
.
size
())
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: redo log checkpoint:
%llu
[ chk key ]: "
,
"InnoDB: redo log checkpoint:
"
UINT64PF
"
[ chk key ]: "
,
checkpoint_no
);
checkpoint_no
);
for
(
size_t
i
=
0
;
i
<
crypt_info
.
size
();
i
++
)
{
for
(
size_t
i
=
0
;
i
<
crypt_info
.
size
();
i
++
)
{
struct
crypt_info_t
*
it
=
&
crypt_info
[
i
];
struct
crypt_info_t
*
it
=
&
crypt_info
[
i
];
fprintf
(
stderr
,
"[
%llu
%u ] "
,
fprintf
(
stderr
,
"[
"
UINT64PF
"
%u ] "
,
it
->
checkpoint_no
,
it
->
checkpoint_no
,
it
->
key_version
);
it
->
key_version
);
}
}
...
...
storage/xtradb/os/os0file.cc
View file @
b6a1d653
...
@@ -6394,7 +6394,7 @@ os_file_trim(
...
@@ -6394,7 +6394,7 @@ os_file_trim(
srv_use_trim
=
FALSE
;
srv_use_trim
=
FALSE
;
ib_logf
(
IB_LOG_LEVEL_WARN
,
ib_logf
(
IB_LOG_LEVEL_WARN
,
"fallocate() failed with error %d."
"fallocate() failed with error %d."
" start:
%llu
len: "
ULINTPF
" payload: "
ULINTPF
"."
" start:
"
UINT64PF
"
len: "
ULINTPF
" payload: "
ULINTPF
"."
" Disabling fallocate for now."
,
" Disabling fallocate for now."
,
errno
,
off
,
ulint
(
trim_len
),
ulint
(
len
));
errno
,
off
,
ulint
(
trim_len
),
ulint
(
len
));
...
...
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