Skip to content
Permalink
Browse files
Remove unused function fil_space_get_id_by_name()
  • Loading branch information
dr-m committed Mar 29, 2018
1 parent 980dd09 commit d177a0e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
@@ -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

0 comments on commit d177a0e

Please sign in to comment.