summaryrefslogtreecommitdiff
path: root/storage/innobase/include
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-03-08 10:07:50 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2017-03-08 10:07:50 +0200
commit9c47beb8bd7e60f00e434d8c1e4bbf2b0befb28c (patch)
tree35813938c2c146f6376a0e9de56471d50c69e7cb /storage/innobase/include
parent1fd3cc8c1f2bfe052c0d6672d65b6d0ac1c87e0f (diff)
downloadmariadb-git-9c47beb8bd7e60f00e434d8c1e4bbf2b0befb28c.tar.gz
MDEV-11027 InnoDB log recovery is too noisy
Provide more useful progress reporting of crash recovery. recv_sys_t::progress_time: The time of the last report. recv_scan_print_counter: Remove. log_group_read_log_seg(): After after each I/O request, report progress if needed. recv_apply_hashed_log_recs(): At the start of each batch, if there are pages to be recovered, issue a message.
Diffstat (limited to 'storage/innobase/include')
-rw-r--r--storage/innobase/include/log0recv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/innobase/include/log0recv.h b/storage/innobase/include/log0recv.h
index ec70e4b7d56..aa5f79aa198 100644
--- a/storage/innobase/include/log0recv.h
+++ b/storage/innobase/include/log0recv.h
@@ -1,6 +1,7 @@
/*****************************************************************************
Copyright (c) 1997, 2010, Innobase Oy. All Rights Reserved.
+Copyright (c) 2017, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -428,6 +429,8 @@ struct recv_sys_struct{
scan find a corrupt log block, or a corrupt
log record, or there is a log parsing
buffer overflow */
+ /** the time when progress was last reported */
+ ib_time_t progress_time;
#ifdef UNIV_LOG_ARCHIVE
log_group_t* archive_group;
/*!< in archive recovery: the log group whose