Skip to content
Permalink
Browse files
Cleanup: Remove fil_space_t::is_deferred()
The public data member can be checked directly by the only caller.
  • Loading branch information
dr-m committed Nov 30, 2022
1 parent 1188ef4 commit fc1403d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
@@ -420,7 +420,7 @@ xb_fil_cur_result_t xb_fil_cur_read(xb_fil_cur_t* cursor,
goto func_exit;
}

defer = space->is_deferred();
defer = UT_LIST_GET_FIRST(space->chain)->deferred;
/* check pages for corruption and re-read if necessary. i.e. in case of
partially written pages */
for (page = cursor->buf, i = 0; i < npages;
@@ -510,10 +510,6 @@ struct fil_space_t final
/** @return whether the storage device is rotational (HDD, not SSD) */
inline bool is_rotational() const;

/** whether the tablespace discovery is being deferred during crash
recovery due to incompletely written page 0 */
inline bool is_deferred() const;

/** Open each file. Never invoked on .ibd files.
@param create_new_db whether to skip the call to fil_node_t::read_page0()
@return whether all files were opened */
@@ -1191,11 +1187,6 @@ inline bool fil_space_t::is_rotational() const
return false;
}

inline bool fil_space_t::is_deferred() const
{
return UT_LIST_GET_FIRST(chain)->deferred;
}

/** Common InnoDB file extensions */
enum ib_extention {
NO_EXT = 0,

0 comments on commit fc1403d

Please sign in to comment.