diff options
Diffstat (limited to 'storage/innobase/include/fsp0types.h')
-rw-r--r-- | storage/innobase/include/fsp0types.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/storage/innobase/include/fsp0types.h b/storage/innobase/include/fsp0types.h index 21951acf72b..f9197394bd7 100644 --- a/storage/innobase/include/fsp0types.h +++ b/storage/innobase/include/fsp0types.h @@ -29,6 +29,12 @@ Created May 26, 2009 Vasil Dimov #ifndef UNIV_INNOCHECKSUM +/** The fil_space_t::id of the redo log. All persistent tablespaces +have a smaller fil_space_t::id. */ +#define SRV_LOG_SPACE_FIRST_ID 0xFFFFFFF0U +/** The fil_space_t::id of the innodb_temporary tablespace. */ +#define SRV_TMP_SPACE_ID 0xFFFFFFFFU + #include "univ.i" #include "ut0byte.h" @@ -196,9 +202,12 @@ fsp_flags_is_valid( /** Check if tablespace is system temporary. @param[in] space_id verify is checksum is enabled for given space. @return true if tablespace is system temporary. */ +inline bool -fsp_is_system_temporary( - ulint space_id); +fsp_is_system_temporary(ulint space_id) +{ + return(space_id == SRV_TMP_SPACE_ID); +} /** Check if checksum is disabled for the given space. @param[in] space_id verify is checksum is enabled for given space. |