Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7f5849a8
Commit
7f5849a8
authored
Apr 07, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-18309: Remove unused code
parent
867617a9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
26 deletions
+4
-26
storage/innobase/dict/dict0load.cc
storage/innobase/dict/dict0load.cc
+3
-5
storage/innobase/fil/fil0fil.cc
storage/innobase/fil/fil0fil.cc
+0
-18
storage/innobase/include/fil0fil.h
storage/innobase/include/fil0fil.h
+0
-2
storage/innobase/row/row0mysql.cc
storage/innobase/row/row0mysql.cc
+1
-1
No files found.
storage/innobase/dict/dict0load.cc
View file @
7f5849a8
...
...
@@ -1449,7 +1449,7 @@ static ulint dict_check_sys_tables()
/* Now that we have the proper name for this tablespace,
look to see if it is already in the tablespace cache. */
if
(
fil_space_for_table_exists_in_mem
(
space_id
,
table_name
.
m_name
,
NULL
,
flags
))
{
space_id
,
table_name
.
m_name
,
flags
))
{
/* Recovery can open a datafile that does not
match SYS_DATAFILES. If they don't match, update
SYS_DATAFILES. */
...
...
@@ -2817,13 +2817,11 @@ dict_load_table(
/** Opens a tablespace for dict_load_table_one()
@param[in,out] table A table that refers to the tablespace to open
@param[in] heap A memory heap
@param[in] ignore_err Whether to ignore an error. */
UNIV_INLINE
void
dict_load_tablespace
(
dict_table_t
*
table
,
mem_heap_t
*
heap
,
dict_err_ignore_t
ignore_err
)
{
ut_ad
(
!
dict_table_is_temporary
(
table
));
...
...
@@ -2844,7 +2842,7 @@ dict_load_tablespace(
/* The tablespace may already be open. */
if
(
fil_space_for_table_exists_in_mem
(
table
->
space
,
space_name
,
heap
,
table
->
flags
))
{
table
->
space
,
space_name
,
table
->
flags
))
{
return
;
}
...
...
@@ -2994,7 +2992,7 @@ dict_load_table_one(
btr_pcur_close
(
&
pcur
);
mtr_commit
(
&
mtr
);
dict_load_tablespace
(
table
,
heap
,
ignore_err
);
dict_load_tablespace
(
table
,
ignore_err
);
dict_load_columns
(
table
,
heap
);
...
...
storage/innobase/fil/fil0fil.cc
View file @
7f5849a8
...
...
@@ -4482,22 +4482,6 @@ fil_file_readdir_next_file(
return
(
-
1
);
}
/*******************************************************************//**
Report that a tablespace for a table was not found. */
static
void
fil_report_missing_tablespace
(
/*===========================*/
const
char
*
name
,
/*!< in: table name */
ulint
space_id
)
/*!< in: table's space id */
{
ib
::
error
()
<<
"Table "
<<
name
<<
" in the InnoDB data dictionary has tablespace id "
<<
space_id
<<
","
" but tablespace with that id or name does not exist. Have"
" you deleted or moved .ibd files?"
;
}
/** Try to adjust FSP_SPACE_FLAGS if they differ from the expectations.
(Typically when upgrading from MariaDB 10.1.0..10.1.20.)
@param[in] space_id tablespace ID
...
...
@@ -4540,14 +4524,12 @@ memory cache. Note that if we have not done a crash recovery at the database
startup, there may be many tablespaces which are not yet in the memory cache.
@param[in] id Tablespace ID
@param[in] name Tablespace name used in fil_space_create().
@param[in] heap Heap memory
@param[in] table_flags table flags
@return true if a matching tablespace exists in the memory cache */
bool
fil_space_for_table_exists_in_mem
(
ulint
id
,
const
char
*
name
,
mem_heap_t
*
heap
,
ulint
table_flags
)
{
fil_space_t
*
space
;
...
...
storage/innobase/include/fil0fil.h
View file @
7f5849a8
...
...
@@ -1162,14 +1162,12 @@ memory cache. Note that if we have not done a crash recovery at the database
startup, there may be many tablespaces which are not yet in the memory cache.
@param[in] id Tablespace ID
@param[in] name Tablespace name used in fil_space_create().
@param[in] heap Heap memory
@param[in] table_flags table flags
@return true if a matching tablespace exists in the memory cache */
bool
fil_space_for_table_exists_in_mem
(
ulint
id
,
const
char
*
name
,
mem_heap_t
*
heap
,
ulint
table_flags
);
/** Try to extend a tablespace if it is smaller than the specified size.
...
...
storage/innobase/row/row0mysql.cc
View file @
7f5849a8
...
...
@@ -3231,7 +3231,7 @@ row_drop_single_table_tablespace(
/* If the tablespace is not in the cache, just delete the file. */
if
(
!
fil_space_for_table_exists_in_mem
(
space_id
,
tablename
,
NULL
,
table_flags
))
{
space_id
,
tablename
,
table_flags
))
{
/* Force a delete of any discarded or temporary files. */
fil_delete_file
(
filepath
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment