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
ecfc3de5
Commit
ecfc3de5
authored
May 11, 2015
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-8129: Compilation warnings in log0crypt.cc
Fix incorrect types and compiler warnings.
parent
5fdb1454
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
storage/innobase/log/log0crypt.cc
storage/innobase/log/log0crypt.cc
+5
-5
storage/innobase/log/log0log.cc
storage/innobase/log/log0log.cc
+1
-1
storage/xtradb/log/log0crypt.cc
storage/xtradb/log/log0crypt.cc
+6
-6
storage/xtradb/log/log0log.cc
storage/xtradb/log/log0log.cc
+1
-1
No files found.
storage/innobase/log/log0crypt.cc
View file @
ecfc3de5
...
...
@@ -61,7 +61,7 @@ static const byte redo_log_purpose_byte = 0x02;
static
const
size_t
kMaxSavedKeys
=
LOG_CRYPT_MAX_ENTRIES
;
struct
crypt_info_t
{
ulong
checkpoint_no
;
/*!< checkpoint no */
ib_uint64_t
checkpoint_no
;
/*!< checkpoint no */
uint
key_version
;
/*!< mysqld key version */
byte
crypt_msg
[
MY_AES_BLOCK_SIZE
];
byte
crypt_key
[
MY_AES_BLOCK_SIZE
];
...
...
@@ -129,14 +129,14 @@ log_blocks_crypt(
{
byte
*
log_block
=
(
byte
*
)
block
;
Crypt_result
rc
=
MY_AES_OK
;
uint
32
dst_len
;
uint
dst_len
;
byte
aes_ctr_counter
[
MY_AES_BLOCK_SIZE
];
ulin
t
lsn
=
is_encrypt
?
log_sys
->
lsn
:
srv_start_lsn
;
lsn_
t
lsn
=
is_encrypt
?
log_sys
->
lsn
:
srv_start_lsn
;
const
int
src_len
=
OS_FILE_LOG_BLOCK_SIZE
-
LOG_BLOCK_HDR_SIZE
;
for
(
ulint
i
=
0
;
i
<
size
;
i
+=
OS_FILE_LOG_BLOCK_SIZE
)
{
ulint
log_block_no
=
log_block_get_hdr_no
(
log_block
);
ulin
t
log_block_start_lsn
=
log_block_get_start_lsn
(
lsn_
t
log_block_start_lsn
=
log_block_get_start_lsn
(
lsn
,
log_block_no
);
const
crypt_info_t
*
info
=
get_crypt_info
(
log_block
);
...
...
@@ -442,7 +442,7 @@ log_crypt_write_checkpoint_buf(
#else
(
void
)
checkpoint_no
;
// unused variable
#endif
ut_a
((
buf
-
save
)
<=
OS_FILE_LOG_BLOCK_SIZE
);
ut_a
((
ulint
)(
buf
-
save
)
<=
OS_FILE_LOG_BLOCK_SIZE
);
}
/*********************************************************************//**
...
...
storage/innobase/log/log0log.cc
View file @
ecfc3de5
...
...
@@ -282,7 +282,7 @@ log_reserve_and_open(
log_t
*
log
=
log_sys
;
ulint
len_upper_limit
;
#ifdef UNIV_LOG_ARCHIVE
ulin
t
archived_lsn_age
;
lsn_
t
archived_lsn_age
;
ulint
dummy
;
#endif
/* UNIV_LOG_ARCHIVE */
#ifdef UNIV_DEBUG
...
...
storage/xtradb/log/log0crypt.cc
View file @
ecfc3de5
...
...
@@ -61,7 +61,7 @@ static const byte redo_log_purpose_byte = 0x02;
static
const
size_t
kMaxSavedKeys
=
LOG_CRYPT_MAX_ENTRIES
;
struct
crypt_info_t
{
ulong
checkpoint_no
;
/*!< checkpoint no */
ib_uint64_t
checkpoint_no
;
/*!< checkpoint no */
uint
key_version
;
/*!< mysqld key version */
byte
crypt_msg
[
MY_AES_BLOCK_SIZE
];
byte
crypt_key
[
MY_AES_BLOCK_SIZE
];
...
...
@@ -129,14 +129,14 @@ log_blocks_crypt(
{
byte
*
log_block
=
(
byte
*
)
block
;
Crypt_result
rc
=
MY_AES_OK
;
uint
32
dst_len
;
uint
dst_len
;
byte
aes_ctr_counter
[
MY_AES_BLOCK_SIZE
];
ulin
t
lsn
=
is_encrypt
?
log_sys
->
lsn
:
srv_start_lsn
;
lsn_
t
lsn
=
is_encrypt
?
log_sys
->
lsn
:
srv_start_lsn
;
const
int
src_len
=
OS_FILE_LOG_BLOCK_SIZE
-
LOG_BLOCK_HDR_SIZE
;
const
u
int
src_len
=
OS_FILE_LOG_BLOCK_SIZE
-
LOG_BLOCK_HDR_SIZE
;
for
(
ulint
i
=
0
;
i
<
size
;
i
+=
OS_FILE_LOG_BLOCK_SIZE
)
{
ulint
log_block_no
=
log_block_get_hdr_no
(
log_block
);
ulin
t
log_block_start_lsn
=
log_block_get_start_lsn
(
lsn_
t
log_block_start_lsn
=
log_block_get_start_lsn
(
lsn
,
log_block_no
);
const
crypt_info_t
*
info
=
get_crypt_info
(
log_block
);
...
...
@@ -442,7 +442,7 @@ log_crypt_write_checkpoint_buf(
#else
(
void
)
checkpoint_no
;
// unused variable
#endif
ut_a
((
buf
-
save
)
<=
OS_FILE_LOG_BLOCK_SIZE
);
ut_a
((
ulint
)(
buf
-
save
)
<=
OS_FILE_LOG_BLOCK_SIZE
);
}
/*********************************************************************//**
...
...
storage/xtradb/log/log0log.cc
View file @
ecfc3de5
...
...
@@ -342,7 +342,7 @@ log_open(
log_t
*
log
=
log_sys
;
ulint
len_upper_limit
;
#ifdef UNIV_LOG_ARCHIVE
ulin
t
archived_lsn_age
;
lsn_
t
archived_lsn_age
;
ulint
dummy
;
#endif
/* UNIV_LOG_ARCHIVE */
ulint
count
=
0
;
...
...
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