MDEV-26547 Restoring InnoDB buffer pool dump is single-threaded for no reason

buf_read_page_background(): Remove the parameter "bool sync"
and always actually initiate a page read in the background.

buf_load(): Always submit asynchronous reads. This allows
page checksums to be verified in concurrent threads as
soon as the reads are completed.
This commit is contained in:
Marko Mäkelä 2021-09-06 10:14:24 +03:00
commit 84c578c795
4 changed files with 16 additions and 18 deletions

View file

@ -1,7 +1,7 @@
/*****************************************************************************
Copyright (c) 2011, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 2020, MariaDB Corporation.
Copyright (c) 2017, 2021, 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
@ -678,7 +678,7 @@ buf_load()
}
space->reacquire();
buf_read_page_background(space, dump[i], zip_size, true);
buf_read_page_background(space, dump[i], zip_size);
if (buf_load_abort_flag) {
if (space) {