Commit fc1403d3 authored by Marko Mäkelä's avatar Marko Mäkelä

Cleanup: Remove fil_space_t::is_deferred()

The public data member can be checked directly by the only caller.
parent 1188ef4a
......@@ -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,
......
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