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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
515c2db0
Commit
515c2db0
authored
Mar 30, 2010
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler warnings removed.
storage/maria/ma_loghandler.c: compiler warnings removed.
parent
8272a47f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
storage/maria/ma_loghandler.c
storage/maria/ma_loghandler.c
+4
-1
No files found.
storage/maria/ma_loghandler.c
View file @
515c2db0
...
...
@@ -1275,6 +1275,7 @@ static my_bool translog_set_lsn_for_files(uint32 from_file, uint32 to_file,
{
LOGHANDLER_FILE_INFO
info
;
File
fd
=
open_logfile_by_number_no_cache
(
file
);
LINT_INIT_STRUCT
(
info
);
if
((
fd
<
0
)
||
((
translog_read_file_header
(
&
info
,
fd
)
||
(
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
;
LINT_INIT_STRUCT
(
info
);
File
fd
=
open_logfile_by_number_no_cache
(
file
);
LINT_INIT_STRUCT
(
info
);
if
((
fd
<
0
)
||
(
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
)
{
LOGHANDLER_FILE_INFO
info
;
LINT_INIT_STRUCT
(
info
);
/*
Accessing &log_descriptor.open_files without mutex is safe
because it is initialization
...
...
@@ -8974,6 +8976,7 @@ static void dump_header_page(uchar *buff)
{
LOGHANDLER_FILE_INFO
desc
;
char
strbuff
[
21
];
LINT_INIT_STRUCT
(
desc
);
translog_interpret_file_header
(
&
desc
,
buff
);
printf
(
" This can be header page:
\n
"
" Timestamp: %s
\n
"
...
...
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