summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorheikki@hundin.mysql.fi <>2005-04-13 17:22:04 +0300
committerheikki@hundin.mysql.fi <>2005-04-13 17:22:04 +0300
commit7cdb04b18b0e419f3f7e7110d9b3c13a068d918d (patch)
tree3e12946cec015dd2e39fe0e578008a38f0e4c4c5 /innobase
parentde42e5e1e25c242f4491e95ff528714b75cedddf (diff)
downloadmariadb-git-7cdb04b18b0e419f3f7e7110d9b3c13a068d918d.tar.gz
fil0fil.c:
At the shutdown, write the latest lsn only to the first pages of the ibdata files of the system tablespace, NOT to the .ibd files; writing to tens of thousands .ibd files can take minutes
Diffstat (limited to 'innobase')
-rw-r--r--innobase/fil/fil0fil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/innobase/fil/fil0fil.c b/innobase/fil/fil0fil.c
index 16ae8e6e228..0f5941ca0d9 100644
--- a/innobase/fil/fil0fil.c
+++ b/innobase/fil/fil0fil.c
@@ -1447,7 +1447,8 @@ fil_write_flushed_lsn_to_data_files(
cache. Note that all data files in the system tablespace 0 are
always open. */
- if (space->purpose == FIL_TABLESPACE) {
+ if (space->purpose == FIL_TABLESPACE
+ && space->id == 0) {
sum_of_sizes = 0;
node = UT_LIST_GET_FIRST(space->chain);