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
410585ca
Commit
410585ca
authored
May 01, 2019
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed dead code
parent
d0b73fb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
57 deletions
+0
-57
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+0
-57
No files found.
storage/xtradb/handler/ha_innodb.cc
View file @
410585ca
...
...
@@ -961,20 +961,6 @@ innodb_empty_free_list_algorithm_allowed(
||
algorithm
!=
SRV_EMPTY_FREE_LIST_BACKOFF
);
}
/** Get the list of foreign keys referencing a specified table
table.
@param thd The thread handle
@param path Path to the table
@param f_key_list[out] The list of foreign keys
@return error code or zero for success */
static
int
innobase_get_parent_fk_list
(
THD
*
thd
,
const
char
*
path
,
List
<
FOREIGN_KEY_INFO
>*
f_key_list
)
__attribute__
((
unused
));
/******************************************************************//**
Maps a MySQL trx isolation level code to the InnoDB isolation level code
@return InnoDB isolation level */
...
...
@@ -15202,49 +15188,6 @@ fill_foreign_key_list(THD* thd,
}
}
/** Get the list of foreign keys referencing a specified table
table.
@param thd The thread handle
@param path Path to the table
@param f_key_list[out] The list of foreign keys
@return error code or zero for success */
static
int
innobase_get_parent_fk_list
(
THD
*
thd
,
const
char
*
path
,
List
<
FOREIGN_KEY_INFO
>*
f_key_list
)
{
ut_a
(
strlen
(
path
)
<=
FN_REFLEN
);
char
norm_name
[
FN_REFLEN
+
1
];
normalize_table_name
(
norm_name
,
path
);
trx_t
*
parent_trx
=
check_trx_exists
(
thd
);
parent_trx
->
op_info
=
"getting list of referencing foreign keys"
;
trx_search_latch_release_if_reserved
(
parent_trx
);
mutex_enter
(
&
dict_sys
->
mutex
);
dict_table_t
*
table
=
dict_table_open_on_name
(
norm_name
,
TRUE
,
FALSE
,
static_cast
<
dict_err_ignore_t
>
(
DICT_ERR_IGNORE_INDEX_ROOT
|
DICT_ERR_IGNORE_CORRUPT
));
if
(
!
table
)
{
mutex_exit
(
&
dict_sys
->
mutex
);
return
(
HA_ERR_NO_SUCH_TABLE
);
}
fill_foreign_key_list
(
thd
,
table
,
f_key_list
);
dict_table_close
(
table
,
TRUE
,
FALSE
);
mutex_exit
(
&
dict_sys
->
mutex
);
parent_trx
->
op_info
=
""
;
return
(
0
);
}
/*******************************************************************//**
Gets the list of foreign keys in this table.
@return always 0, that is, always succeeds */
...
...
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