mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Compiler warnings removed.
storage/maria/ma_loghandler.c: compiler warnings removed.
This commit is contained in:
parent
8272a47fa0
commit
515c2db030
1 changed files with 4 additions and 1 deletions
|
@ -1275,6 +1275,7 @@ static my_bool translog_set_lsn_for_files(uint32 from_file, uint32 to_file,
|
||||||
{
|
{
|
||||||
LOGHANDLER_FILE_INFO info;
|
LOGHANDLER_FILE_INFO info;
|
||||||
File fd= open_logfile_by_number_no_cache(file);
|
File fd= open_logfile_by_number_no_cache(file);
|
||||||
|
LINT_INIT_STRUCT(info);
|
||||||
if ((fd < 0) ||
|
if ((fd < 0) ||
|
||||||
((translog_read_file_header(&info, fd) ||
|
((translog_read_file_header(&info, fd) ||
|
||||||
(cmp_translog_addr(lsn, info.max_lsn) > 0 &&
|
(cmp_translog_addr(lsn, info.max_lsn) > 0 &&
|
||||||
|
@ -1457,8 +1458,8 @@ LSN translog_get_file_max_lsn_stored(uint32 file)
|
||||||
|
|
||||||
{
|
{
|
||||||
LOGHANDLER_FILE_INFO info;
|
LOGHANDLER_FILE_INFO info;
|
||||||
LINT_INIT_STRUCT(info);
|
|
||||||
File fd= open_logfile_by_number_no_cache(file);
|
File fd= open_logfile_by_number_no_cache(file);
|
||||||
|
LINT_INIT_STRUCT(info);
|
||||||
if ((fd < 0) ||
|
if ((fd < 0) ||
|
||||||
(translog_read_file_header(&info, fd) | my_close(fd, MYF(MY_WME))))
|
(translog_read_file_header(&info, fd) | my_close(fd, MYF(MY_WME))))
|
||||||
{
|
{
|
||||||
|
@ -3966,6 +3967,7 @@ my_bool translog_init_with_table(const char *directory,
|
||||||
if (!old_log_was_recovered && old_flags == flags)
|
if (!old_log_was_recovered && old_flags == flags)
|
||||||
{
|
{
|
||||||
LOGHANDLER_FILE_INFO info;
|
LOGHANDLER_FILE_INFO info;
|
||||||
|
LINT_INIT_STRUCT(info);
|
||||||
/*
|
/*
|
||||||
Accessing &log_descriptor.open_files without mutex is safe
|
Accessing &log_descriptor.open_files without mutex is safe
|
||||||
because it is initialization
|
because it is initialization
|
||||||
|
@ -8974,6 +8976,7 @@ static void dump_header_page(uchar *buff)
|
||||||
{
|
{
|
||||||
LOGHANDLER_FILE_INFO desc;
|
LOGHANDLER_FILE_INFO desc;
|
||||||
char strbuff[21];
|
char strbuff[21];
|
||||||
|
LINT_INIT_STRUCT(desc);
|
||||||
translog_interpret_file_header(&desc, buff);
|
translog_interpret_file_header(&desc, buff);
|
||||||
printf(" This can be header page:\n"
|
printf(" This can be header page:\n"
|
||||||
" Timestamp: %s\n"
|
" Timestamp: %s\n"
|
||||||
|
|
Loading…
Add table
Reference in a new issue