Commit f9d471e2 authored by Marko Mäkelä's avatar Marko Mäkelä

Cleanup: Remove innobase_init_vc_templ()

This fixes up a merge of commit 4fb8f7d0
with respect to commit ea37b144.
parent b04af648
......@@ -20364,30 +20364,6 @@ static TABLE* innodb_find_table_for_vc(THD* thd, dict_table_t* table)
return mysql_table;
}
/** Only used by the purge thread
@param[in,out] table table whose virtual column template to be built */
TABLE* innobase_init_vc_templ(dict_table_t* table)
{
DBUG_ENTER("innobase_init_vc_templ");
ut_ad(table->vc_templ == NULL);
TABLE *mysql_table= innodb_find_table_for_vc(current_thd, table);
ut_ad(mysql_table);
if (!mysql_table) {
DBUG_RETURN(NULL);
}
dict_vcol_templ_t* vc_templ = UT_NEW_NOKEY(dict_vcol_templ_t());
mutex_enter(&dict_sys.mutex);
table->vc_templ = vc_templ;
innobase_build_v_templ(mysql_table, table, vc_templ, nullptr, true);
mutex_exit(&dict_sys.mutex);
DBUG_RETURN(mysql_table);
}
/** Change dbname and table name in table->vc_templ.
@param[in,out] table the table whose virtual column template
dbname and tbname to be renamed. */
......
......@@ -940,11 +940,6 @@ innobase_get_computed_value(
const upd_t* update=NULL,
bool ignore_warnings=false);
/** Get the computed value by supplying the base column values.
@param[in,out] table the table whose virtual column
template to be built */
TABLE* innobase_init_vc_templ(dict_table_t* table);
/** Change dbname and table name in table->vc_templ.
@param[in,out] table the table whose virtual column template
dbname and tbname to be renamed. */
......
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