summaryrefslogtreecommitdiff
path: root/storage/innobase/fil/fil0fil.cc
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2021-12-07 08:19:27 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2021-12-12 09:58:54 +0530
commitbe5990d0c8563d1b2e70cb7d453ecef0a842bb5d (patch)
tree22ef1b6a0f46ed1e0b077fa72200e17f7bbb3b67 /storage/innobase/fil/fil0fil.cc
parent50ed0bd891f11a2dae3a67d1ecbf8223fcbedbc6 (diff)
downloadmariadb-git-be5990d0c8563d1b2e70cb7d453ecef0a842bb5d.tar.gz
MDEV-27014 InnoDB fails to restore page 0 from the doublewrite buffer
This patch reverts the commit cab8f4b552d234c8642f87fae28ecb098392c381. InnoDB fails to restore page0 from doublewrite buffer when the tablespace is being deferred. In that case, InnoDB doesn't find INIT_PAGE redo log record for page0 and it leads to failure. InnoDB should recovery page0 from doublewrite buffer for the deferred tablespace before applying the redo log records. Added deferred_dblwr() to restore page0 of deferred tablespace from doublewrite buffer
Diffstat (limited to 'storage/innobase/fil/fil0fil.cc')
-rw-r--r--storage/innobase/fil/fil0fil.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/innobase/fil/fil0fil.cc b/storage/innobase/fil/fil0fil.cc
index 1bedcb56077..681cee32fd5 100644
--- a/storage/innobase/fil/fil0fil.cc
+++ b/storage/innobase/fil/fil0fil.cc
@@ -2576,8 +2576,7 @@ fil_ibd_load(
/* Read and validate the first page of the tablespace.
Assign a tablespace name based on the tablespace type. */
- switch (file.validate_for_recovery(
- static_cast<uint32_t>(space_id))) {
+ switch (file.validate_for_recovery()) {
os_offset_t minimum_size;
case DB_SUCCESS:
deferred_space = file.m_defer;