Skip to content

Commit d177a0e

Browse files
committed
Remove unused function fil_space_get_id_by_name()
1 parent 980dd09 commit d177a0e

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

storage/innobase/fil/fil0fil.cc

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4785,26 +4785,6 @@ fil_space_for_table_exists_in_mem(
47854785
return(valid);
47864786
}
47874787

4788-
/** Return the space ID based on the tablespace name.
4789-
The tablespace must be found in the tablespace memory cache.
4790-
This call is made from external to this module, so the mutex is not owned.
4791-
@param[in] tablespace Tablespace name
4792-
@return space ID if tablespace found, ULINT_UNDEFINED if space not. */
4793-
ulint
4794-
fil_space_get_id_by_name(
4795-
const char* tablespace)
4796-
{
4797-
mutex_enter(&fil_system->mutex);
4798-
4799-
/* Search for a space with the same name. */
4800-
fil_space_t* space = fil_space_get_by_name(tablespace);
4801-
ulint id = (space == NULL) ? ULINT_UNDEFINED : space->id;
4802-
4803-
mutex_exit(&fil_system->mutex);
4804-
4805-
return(id);
4806-
}
4807-
48084788
/*========== RESERVE FREE EXTENTS (for a B-tree split, for example) ===*/
48094789

48104790
/*******************************************************************//**

storage/innobase/include/fil0fil.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,15 +1424,6 @@ char*
14241424
fil_path_to_space_name(
14251425
const char* filename);
14261426

1427-
/** Returns the space ID based on the tablespace name.
1428-
The tablespace must be found in the tablespace memory cache.
1429-
This call is made from external to this module, so the mutex is not owned.
1430-
@param[in] tablespace Tablespace name
1431-
@return space ID if tablespace found, ULINT_UNDEFINED if space not. */
1432-
ulint
1433-
fil_space_get_id_by_name(
1434-
const char* tablespace);
1435-
14361427
/** Generate redo log for swapping two .ibd files
14371428
@param[in] old_table old table
14381429
@param[in] new_table new table

0 commit comments

Comments
 (0)