Browse Source
MDEV-11585 Hard-code the shared InnoDB temporary tablespace ID at -1
MDEV-11585 Hard-code the shared InnoDB temporary tablespace ID at -1
MySQL 5.7 supports only one shared temporary tablespace. MariaDB 10.2 does not support any other shared InnoDB tablespaces than the two predefined tablespaces: the persistent InnoDB system tablespace (default file name ibdata1) and the temporary tablespace (default file name ibtmp1). InnoDB is unnecessarily allocating a tablespace ID for the predefined temporary tablespace on every startup, and it is in several places testing whether a tablespace ID matches this dynamically generated ID. We should use a compile-time constant to reduce code size and to avoid unnecessary updates to the DICT_HDR page at every startup. Using a hard-coded tablespace ID will should make it easier to remove the TEMPORARY flag from FSP_SPACE_FLAGS in MDEV-11202.pull/283/head
17 changed files with 76 additions and 98 deletions
-
8mysql-test/suite/encryption/r/debug_key_management.result
-
2mysql-test/suite/encryption/r/innodb-bad-key-change4.result
-
1mysql-test/suite/encryption/t/innodb-bad-key-change4.test
-
2storage/innobase/btr/btr0btr.cc
-
2storage/innobase/buf/buf0buf.cc
-
3storage/innobase/dict/dict0crea.cc
-
11storage/innobase/fil/fil0fil.cc
-
53storage/innobase/fsp/fsp0fsp.cc
-
11storage/innobase/fsp/fsp0space.cc
-
3storage/innobase/ibuf/ibuf0ibuf.cc
-
5storage/innobase/include/fsp0space.h
-
11storage/innobase/include/fsp0sysspace.h
-
13storage/innobase/include/fsp0types.h
-
3storage/innobase/include/srv0start.h
-
2storage/innobase/row/row0trunc.cc
-
41storage/innobase/srv/srv0start.cc
-
3storage/innobase/trx/trx0sys.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue