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

Merge 10.0 into 10.1

parents 2a2e8ea8 12b1ba19
...@@ -11015,10 +11015,6 @@ create_table_def( ...@@ -11015,10 +11015,6 @@ create_table_def(
: ER_TABLESPACE_EXISTS, MYF(0), display_name); : ER_TABLESPACE_EXISTS, MYF(0), display_name);
} }
if (err == DB_SUCCESS && (flags2 & DICT_TF2_FTS)) {
fts_optimize_add_table(table);
}
error_ret: error_ret:
DBUG_RETURN(convert_error_code_to_mysql(err, flags, thd)); DBUG_RETURN(convert_error_code_to_mysql(err, flags, thd));
} }
...@@ -12296,6 +12292,10 @@ ha_innobase::create( ...@@ -12296,6 +12292,10 @@ ha_innobase::create(
trx_free_for_mysql(trx); trx_free_for_mysql(trx);
DBUG_RETURN(-1); DBUG_RETURN(-1);
} }
mutex_enter(&dict_sys->mutex);
fts_optimize_add_table(innobase_table);
mutex_exit(&dict_sys->mutex);
} }
/* Note: We can't call update_thd() as prebuilt will not be /* Note: We can't call update_thd() as prebuilt will not be
......
...@@ -11584,10 +11584,6 @@ create_table_def( ...@@ -11584,10 +11584,6 @@ create_table_def(
: ER_TABLESPACE_EXISTS, MYF(0), display_name); : ER_TABLESPACE_EXISTS, MYF(0), display_name);
} }
if (err == DB_SUCCESS && (flags2 & DICT_TF2_FTS)) {
fts_optimize_add_table(table);
}
error_ret: error_ret:
DBUG_RETURN(convert_error_code_to_mysql(err, flags, thd)); DBUG_RETURN(convert_error_code_to_mysql(err, flags, thd));
} }
...@@ -12869,6 +12865,10 @@ ha_innobase::create( ...@@ -12869,6 +12865,10 @@ ha_innobase::create(
trx_free_for_mysql(trx); trx_free_for_mysql(trx);
DBUG_RETURN(-1); DBUG_RETURN(-1);
} }
mutex_enter(&dict_sys->mutex);
fts_optimize_add_table(innobase_table);
mutex_exit(&dict_sys->mutex);
} }
/* Note: We can't call update_thd() as prebuilt will not be /* Note: We can't call update_thd() as prebuilt will not be
......
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