summaryrefslogtreecommitdiff
path: root/storage/innobase/include/fsp0sysspace.h
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/include/fsp0sysspace.h')
-rw-r--r--storage/innobase/include/fsp0sysspace.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/storage/innobase/include/fsp0sysspace.h b/storage/innobase/include/fsp0sysspace.h
index 226d53ebd50..c25093491a2 100644
--- a/storage/innobase/include/fsp0sysspace.h
+++ b/storage/innobase/include/fsp0sysspace.h
@@ -291,11 +291,9 @@ extern SysTablespace srv_tmp_space;
@return true if id is a system tablespace, false if not. */
UNIV_INLINE
bool
-is_system_tablespace(
- ulint id)
+is_system_tablespace(ulint id)
{
- return(id == srv_sys_space.space_id()
- || id == srv_tmp_space.space_id());
+ return(id == TRX_SYS_SPACE || id == SRV_TMP_SPACE_ID);
}
/** Check if shared-system or undo tablespace.
@@ -305,8 +303,7 @@ bool
is_system_or_undo_tablespace(
ulint id)
{
- return(id == srv_sys_space.space_id()
- || id <= srv_undo_tablespaces_open);
+ return(id <= srv_undo_tablespaces_open);
}
/** Check if predefined shared tablespace.
@@ -319,6 +316,6 @@ is_predefined_tablespace(
ut_ad(srv_sys_space.space_id() == TRX_SYS_SPACE);
ut_ad(TRX_SYS_SPACE == 0);
return(id <= srv_undo_tablespaces_open
- || id == srv_tmp_space.space_id());
+ || id == SRV_TMP_SPACE_ID);
}
#endif /* fsp0sysspace_h */