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
0a512e88
Commit
0a512e88
authored
Sep 18, 2019
by
Vlad Lesin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some extra logging is added
(cherry picked from commit 7ff6e33d7ff7104fefb4df4a33c6f3fa54c0093d)
parent
0789a1a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
5 deletions
+25
-5
extra/mariabackup/xtrabackup.cc
extra/mariabackup/xtrabackup.cc
+4
-0
storage/innobase/log/log0recv.cc
storage/innobase/log/log0recv.cc
+21
-5
No files found.
extra/mariabackup/xtrabackup.cc
View file @
0a512e88
...
@@ -2728,7 +2728,11 @@ static bool xtrabackup_copy_logfile(bool last = false)
...
@@ -2728,7 +2728,11 @@ static bool xtrabackup_copy_logfile(bool last = false)
do
{
do
{
end_lsn
=
start_lsn
+
RECV_SCAN_SIZE
;
end_lsn
=
start_lsn
+
RECV_SCAN_SIZE
;
DBUG_EXECUTE_IF
(
"ib_log"
,
msg
(
"xtrabackup_copy_logfile: start throttling"
););
xtrabackup_io_throttling
();
xtrabackup_io_throttling
();
DBUG_EXECUTE_IF
(
"ib_log"
,
msg
(
"xtrabackup_copy_logfile: stop throttling"
););
log_mutex_enter
();
log_mutex_enter
();
lsn_t
lsn
=
start_lsn
;
lsn_t
lsn
=
start_lsn
;
...
...
storage/innobase/log/log0recv.cc
View file @
0a512e88
...
@@ -941,6 +941,11 @@ bool log_t::files::read_log_seg(lsn_t* start_lsn, lsn_t end_lsn)
...
@@ -941,6 +941,11 @@ bool log_t::files::read_log_seg(lsn_t* start_lsn, lsn_t end_lsn)
const
ulint
page_no
=
ulint
(
source_offset
>>
srv_page_size_shift
);
const
ulint
page_no
=
ulint
(
source_offset
>>
srv_page_size_shift
);
DBUG_PRINT
(
"ib_log"
,
(
"read_log_seg: start_lsn: "
UINT64PF
", source_offset: "
UINT64PF
", at_eof: %d, len: "
ULINTPF
", page_no: "
ULINTPF
,
*
start_lsn
,
source_offset
,
at_eof
,
len
,
page_no
));
fil_io
(
IORequestLogRead
,
true
,
fil_io
(
IORequestLogRead
,
true
,
page_id_t
(
SRV_LOG_SPACE_FIRST_ID
,
page_no
),
page_id_t
(
SRV_LOG_SPACE_FIRST_ID
,
page_no
),
univ_page_size
,
univ_page_size
,
...
@@ -951,8 +956,15 @@ bool log_t::files::read_log_seg(lsn_t* start_lsn, lsn_t end_lsn)
...
@@ -951,8 +956,15 @@ bool log_t::files::read_log_seg(lsn_t* start_lsn, lsn_t end_lsn)
buf
+=
OS_FILE_LOG_BLOCK_SIZE
,
buf
+=
OS_FILE_LOG_BLOCK_SIZE
,
(
*
start_lsn
)
+=
OS_FILE_LOG_BLOCK_SIZE
)
{
(
*
start_lsn
)
+=
OS_FILE_LOG_BLOCK_SIZE
)
{
const
ulint
block_number
=
log_block_get_hdr_no
(
buf
);
const
ulint
block_number
=
log_block_get_hdr_no
(
buf
);
const
ulint
calculated_block_number
=
log_block_convert_lsn_to_no
(
*
start_lsn
);
DBUG_PRINT
(
"ib_log"
,
(
"read_log_seg: iterate "
ULINTPF
", block_number: "
ULINTPF
", calculated_block_number: "
ULINTPF
,
l
,
block_number
,
calculated_block_number
));
if
(
block_number
!=
log_block_convert_lsn_to_no
(
*
start_lsn
)
)
{
if
(
block_number
!=
calculated_block_number
)
{
/* Garbage or an incompletely written log block.
/* Garbage or an incompletely written log block.
We will not report any error, because this can
We will not report any error, because this can
happen when InnoDB was killed while it was
happen when InnoDB was killed while it was
...
@@ -995,13 +1007,15 @@ bool log_t::files::read_log_seg(lsn_t* start_lsn, lsn_t end_lsn)
...
@@ -995,13 +1007,15 @@ bool log_t::files::read_log_seg(lsn_t* start_lsn, lsn_t end_lsn)
if
(
dl
<
LOG_BLOCK_HDR_SIZE
if
(
dl
<
LOG_BLOCK_HDR_SIZE
||
(
dl
>
OS_FILE_LOG_BLOCK_SIZE
-
LOG_BLOCK_TRL_SIZE
||
(
dl
>
OS_FILE_LOG_BLOCK_SIZE
-
LOG_BLOCK_TRL_SIZE
&&
dl
!=
OS_FILE_LOG_BLOCK_SIZE
))
{
&&
dl
!=
OS_FILE_LOG_BLOCK_SIZE
))
{
DBUG_PRINT
(
"ib_log"
,
(
"read_log_seg: fail, dl: "
ULINTPF
,
dl
));
recv_sys
->
found_corrupt_log
=
true
;
recv_sys
->
found_corrupt_log
=
true
;
goto
fail
;
goto
fail
;
}
}
}
}
ib
::
info
()
<<
"Read redo log up to LSN="
<<
*
start_lsn
;
if
(
recv_sys
->
report
(
ut_time
()))
{
if
(
recv_sys
->
report
(
ut_time
()))
{
ib
::
info
()
<<
"Read redo log up to LSN="
<<
*
start_lsn
;
service_manager_extend_timeout
(
INNODB_EXTEND_TIMEOUT_INTERVAL
,
service_manager_extend_timeout
(
INNODB_EXTEND_TIMEOUT_INTERVAL
,
"Read redo log up to LSN="
LSN_PF
,
"Read redo log up to LSN="
LSN_PF
,
*
start_lsn
);
*
start_lsn
);
...
@@ -1322,9 +1336,11 @@ recv_find_max_checkpoint(ulint* max_field)
...
@@ -1322,9 +1336,11 @@ recv_find_max_checkpoint(ulint* max_field)
buf
+
LOG_CHECKPOINT_NO
);
buf
+
LOG_CHECKPOINT_NO
);
DBUG_PRINT
(
"ib_log"
,
DBUG_PRINT
(
"ib_log"
,
(
"checkpoint "
UINT64PF
" at "
LSN_PF
" found"
,
(
"checkpoint "
UINT64PF
" at "
LSN_PF
" found, "
checkpoint_no
,
mach_read_from_8
(
"checkpoint offset "
UINT64PF
,
buf
+
LOG_CHECKPOINT_LSN
)));
checkpoint_no
,
mach_read_from_8
(
buf
+
LOG_CHECKPOINT_LSN
),
mach_read_from_8
(
buf
+
LOG_CHECKPOINT_OFFSET
)));
if
(
checkpoint_no
>=
max_no
)
{
if
(
checkpoint_no
>=
max_no
)
{
*
max_field
=
field
;
*
max_field
=
field
;
...
...
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