Commit 3eb73bf6 authored by Marko Mäkelä's avatar Marko Mäkelä

Remove unnecessary SysTablespace references

parent 622d21e2
...@@ -5186,7 +5186,7 @@ fil_io( ...@@ -5186,7 +5186,7 @@ fil_io(
break; break;
} else { } else {
if (space->id != srv_sys_space.space_id() if (space->id != TRX_SYS_SPACE
&& UT_LIST_GET_LEN(space->chain) == 1 && UT_LIST_GET_LEN(space->chain) == 1
&& (srv_is_tablespace_truncated(space->id) && (srv_is_tablespace_truncated(space->id)
|| space->is_being_truncated || space->is_being_truncated
...@@ -5238,7 +5238,7 @@ fil_io( ...@@ -5238,7 +5238,7 @@ fil_io(
/* Check that at least the start offset is within the bounds of a /* Check that at least the start offset is within the bounds of a
single-table tablespace, including rollback tablespaces. */ single-table tablespace, including rollback tablespaces. */
if (node->size <= cur_page_no if (node->size <= cur_page_no
&& space->id != srv_sys_space.space_id() && space->id != TRX_SYS_SPACE
&& fil_type_is_data(space->purpose)) { && fil_type_is_data(space->purpose)) {
if (req_type.ignore_missing()) { if (req_type.ignore_missing()) {
......
...@@ -942,7 +942,7 @@ fsp_try_extend_data_file(fil_space_t* space, fsp_header_t* header, mtr_t* mtr) ...@@ -942,7 +942,7 @@ fsp_try_extend_data_file(fil_space_t* space, fsp_header_t* header, mtr_t* mtr)
ut_d(fsp_space_modify_check(space, mtr)); ut_d(fsp_space_modify_check(space, mtr));
if (space->id == srv_sys_space.space_id() if (space->id == TRX_SYS_SPACE
&& !srv_sys_space.can_auto_extend_last_file()) { && !srv_sys_space.can_auto_extend_last_file()) {
/* We print the error message only once to avoid /* We print the error message only once to avoid
...@@ -956,7 +956,7 @@ fsp_try_extend_data_file(fil_space_t* space, fsp_header_t* header, mtr_t* mtr) ...@@ -956,7 +956,7 @@ fsp_try_extend_data_file(fil_space_t* space, fsp_header_t* header, mtr_t* mtr)
srv_sys_space.set_tablespace_full_status(true); srv_sys_space.set_tablespace_full_status(true);
} }
return(0); return(0);
} else if (fsp_is_system_temporary(space->id) } else if (space->id == SRV_TMP_SPACE_ID
&& !srv_tmp_space.can_auto_extend_last_file()) { && !srv_tmp_space.can_auto_extend_last_file()) {
/* We print the error message only once to avoid /* We print the error message only once to avoid
......
...@@ -640,7 +640,7 @@ row_quiesce_set_state( ...@@ -640,7 +640,7 @@ row_quiesce_set_state(
ER_CANNOT_DISCARD_TEMPORARY_TABLE); ER_CANNOT_DISCARD_TEMPORARY_TABLE);
return(DB_UNSUPPORTED); return(DB_UNSUPPORTED);
} else if (table->space == srv_sys_space.space_id()) { } else if (table->space == TRX_SYS_SPACE) {
char table_name[MAX_FULL_NAME_LEN + 1]; char table_name[MAX_FULL_NAME_LEN + 1];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment