mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
Follow-up to MDEV-11027: Use recv_sys_t::report()
This commit is contained in:
parent
b46fa627ca
commit
08d0ea1fcf
2 changed files with 10 additions and 12 deletions
storage
|
@ -1770,12 +1770,11 @@ recv_recover_page_func(
|
|||
recv_addr->state = RECV_PROCESSED;
|
||||
|
||||
ut_a(recv_sys->n_addrs > 0);
|
||||
if (--recv_sys->n_addrs && recv_sys->progress_time - time >= 15) {
|
||||
recv_sys->progress_time = time;
|
||||
ut_print_timestamp(stderr);
|
||||
fprintf(stderr,
|
||||
" InnoDB: To recover: " ULINTPF " pages from log\n",
|
||||
recv_sys->n_addrs);
|
||||
if (ulint n = --recv_sys->n_addrs) {
|
||||
if (recv_sys->report(time)) {
|
||||
ib_logf(IB_LOG_LEVEL_INFO,
|
||||
"To recover: " ULINTPF " pages from log", n);
|
||||
}
|
||||
}
|
||||
|
||||
mutex_exit(&recv_sys->mutex);
|
||||
|
|
|
@ -1860,12 +1860,11 @@ recv_recover_page_func(
|
|||
recv_addr->state = RECV_PROCESSED;
|
||||
|
||||
ut_a(recv_sys->n_addrs > 0);
|
||||
if (--recv_sys->n_addrs && recv_sys->progress_time - time >= 15) {
|
||||
recv_sys->progress_time = time;
|
||||
ut_print_timestamp(stderr);
|
||||
fprintf(stderr,
|
||||
" InnoDB: To recover: " ULINTPF " pages from log\n",
|
||||
recv_sys->n_addrs);
|
||||
if (ulint n = --recv_sys->n_addrs) {
|
||||
if (recv_sys->report(time)) {
|
||||
ib_logf(IB_LOG_LEVEL_INFO,
|
||||
"To recover: " ULINTPF " pages from log", n);
|
||||
}
|
||||
}
|
||||
|
||||
mutex_exit(&recv_sys->mutex);
|
||||
|
|
Loading…
Add table
Reference in a new issue