summaryrefslogtreecommitdiff
path: root/innobase/srv
diff options
context:
space:
mode:
authorheikki@donna.mysql.fi <>2001-12-24 22:27:11 +0200
committerheikki@donna.mysql.fi <>2001-12-24 22:27:11 +0200
commit7f44419d423a16aca7628ade8dcad2e99771e03f (patch)
tree04c4faf9687dda2e971f57599842c953f24a061f /innobase/srv
parent954920c874a82fdba6c6a7ad28041635c622b21b (diff)
downloadmariadb-git-7f44419d423a16aca7628ade8dcad2e99771e03f.tar.gz
log0recv.c:
Print progress info of the applying log records to the database phase in recovery srv0srv.c: Do buffer pool flush and checkpoints more often to make recovery faster
Diffstat (limited to 'innobase/srv')
-rw-r--r--innobase/srv/srv0srv.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/innobase/srv/srv0srv.c b/innobase/srv/srv0srv.c
index 37bf59b6b9a..d77db335366 100644
--- a/innobase/srv/srv0srv.c
+++ b/innobase/srv/srv0srv.c
@@ -2417,7 +2417,19 @@ loop:
background_loop:
/* In this loop we run background operations when the server
- is quiet */
+ is quiet and we also come here about once in 10 seconds */
+
+ srv_main_thread_op_info = "flushing buffer pool pages";
+
+ /* Flush a few oldest pages to make the checkpoint younger */
+
+ n_pages_flushed = buf_flush_batch(BUF_FLUSH_LIST, 10, ut_dulint_max);
+
+ srv_main_thread_op_info = "making checkpoint";
+
+ /* Make a new checkpoint about once in 10 seconds */
+
+ log_checkpoint(TRUE, FALSE);
srv_main_thread_op_info = "reserving kernel mutex";