summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2019-05-01 15:22:22 +0400
committerSergey Vojtovich <svoj@mariadb.org>2019-05-09 00:03:24 +0400
commitabb6e81bc33a7bbf2e19f1e4f3c7dd5da114949d (patch)
treeb22f4242528a1ff2c52828ebf7fb9b3cff966149
parent62c517cc8f22e2c729a3bee6a0e02189b7e4e52a (diff)
downloadmariadb-git-bb-10.1-svoj.tar.gz
Removed dead codebb-10.1-svoj
-rw-r--r--storage/xtradb/handler/ha_innodb.cc57
1 files changed, 0 insertions, 57 deletions
diff --git a/storage/xtradb/handler/ha_innodb.cc b/storage/xtradb/handler/ha_innodb.cc
index 37d6614a8b6..9784f6f68e3 100644
--- a/storage/xtradb/handler/ha_innodb.cc
+++ b/storage/xtradb/handler/ha_innodb.cc
@@ -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 */