Commit cefeb59a authored by marko's avatar marko

branches/zip: Replace fil_get_space_for_id_low() with fil_space_get_by_id().

parent 68247c5f
...@@ -1324,29 +1324,6 @@ fil_space_free( ...@@ -1324,29 +1324,6 @@ fil_space_free(
return(TRUE); return(TRUE);
} }
#ifdef UNIV_HOTBACKUP
/***********************************************************************
Returns the tablespace object for a given id, or NULL if not found from the
tablespace memory cache. */
static
fil_space_t*
fil_get_space_for_id_low(
/*=====================*/
/* out: tablespace object or NULL; NOTE that you must
own &(fil_system->mutex) to call this function! */
ulint id) /* in: space id */
{
fil_system_t* system = fil_system;
fil_space_t* space;
ut_ad(system);
space = fil_space_get_by_id(id);
return(space);
}
#endif
/*********************************************************************** /***********************************************************************
Returns the size of the space in pages. The tablespace must be cached in the Returns the size of the space in pages. The tablespace must be cached in the
memory cache. */ memory cache. */
...@@ -3309,7 +3286,7 @@ fil_load_single_table_tablespace( ...@@ -3309,7 +3286,7 @@ fil_load_single_table_tablespace(
mutex_enter(&(fil_system->mutex)); mutex_enter(&(fil_system->mutex));
space = fil_get_space_for_id_low(space_id); space = fil_space_get_by_id(space_id);
if (space) { if (space) {
char* new_path; char* new_path;
......
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