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

Remove unused function fil_space_get_id_by_name()

parent 980dd09b
......@@ -4785,26 +4785,6 @@ fil_space_for_table_exists_in_mem(
return(valid);
}
/** Return the space ID based on the tablespace name.
The tablespace must be found in the tablespace memory cache.
This call is made from external to this module, so the mutex is not owned.
@param[in] tablespace Tablespace name
@return space ID if tablespace found, ULINT_UNDEFINED if space not. */
ulint
fil_space_get_id_by_name(
const char* tablespace)
{
mutex_enter(&fil_system->mutex);
/* Search for a space with the same name. */
fil_space_t* space = fil_space_get_by_name(tablespace);
ulint id = (space == NULL) ? ULINT_UNDEFINED : space->id;
mutex_exit(&fil_system->mutex);
return(id);
}
/*========== RESERVE FREE EXTENTS (for a B-tree split, for example) ===*/
/*******************************************************************//**
......
......@@ -1424,15 +1424,6 @@ char*
fil_path_to_space_name(
const char* filename);
/** Returns the space ID based on the tablespace name.
The tablespace must be found in the tablespace memory cache.
This call is made from external to this module, so the mutex is not owned.
@param[in] tablespace Tablespace name
@return space ID if tablespace found, ULINT_UNDEFINED if space not. */
ulint
fil_space_get_id_by_name(
const char* tablespace);
/** Generate redo log for swapping two .ibd files
@param[in] old_table old table
@param[in] new_table new table
......
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