Cleanup: Remove fil_space_t::is_deferred()

The public data member can be checked directly by the only caller.
This commit is contained in:
Marko Mäkelä 2022-11-30 10:41:11 +02:00
parent 1188ef4ade
commit fc1403d3a9
2 changed files with 1 additions and 10 deletions

View file

@ -420,7 +420,7 @@ read_retry:
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;

View file

@ -510,10 +510,6 @@ public:
/** @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,