summaryrefslogtreecommitdiff
path: root/storage/innobase/include/srv0start.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2016-12-16 16:36:54 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2016-12-19 16:24:10 +0200
commit8375a2c1cec3c386f6db797d75f64b8f03c83b37 (patch)
tree3ccb76d486f6949dd9120d85884366da7f0feff6 /storage/innobase/include/srv0start.h
parentc35b8c46b404d035e54a23d667da5dff6502fc2e (diff)
downloadmariadb-git-8375a2c1cec3c386f6db797d75f64b8f03c83b37.tar.gz
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.
Diffstat (limited to 'storage/innobase/include/srv0start.h')
-rw-r--r--storage/innobase/include/srv0start.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/storage/innobase/include/srv0start.h b/storage/innobase/include/srv0start.h
index 82b5446c62a..708a90247e3 100644
--- a/storage/innobase/include/srv0start.h
+++ b/storage/innobase/include/srv0start.h
@@ -46,9 +46,6 @@ struct dict_table_t;
} while (0)
#endif /* DBUG_OFF */
-/** Log 'spaces' have id's >= this */
-#define SRV_LOG_SPACE_FIRST_ID 0xFFFFFFF0UL
-
/** If buffer pool is less than the size,
only one buffer pool instance is used. */
#define BUF_POOL_SIZE_THRESHOLD (1024 * 1024 * 1024)