File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -9371,10 +9371,6 @@ create_table_def(
9371
9371
: ER_TABLESPACE_EXISTS, MYF(0), display_name);
9372
9372
}
9373
9373
9374
- if (err == DB_SUCCESS && (flags2 & DICT_TF2_FTS)) {
9375
- fts_optimize_add_table(table);
9376
- }
9377
-
9378
9374
error_ret:
9379
9375
DBUG_RETURN(convert_error_code_to_mysql(err, flags, thd));
9380
9376
}
@@ -10441,6 +10437,10 @@ ha_innobase::create(
10441
10437
trx_free_for_mysql(trx);
10442
10438
DBUG_RETURN(-1);
10443
10439
}
10440
+
10441
+ mutex_enter(&dict_sys->mutex);
10442
+ fts_optimize_add_table(innobase_table);
10443
+ mutex_exit(&dict_sys->mutex);
10444
10444
}
10445
10445
10446
10446
/* Note: We can't call update_thd() as prebuilt will not be
Original file line number Diff line number Diff line change @@ -10143,10 +10143,6 @@ create_table_def(
10143
10143
: ER_TABLESPACE_EXISTS, MYF(0), display_name);
10144
10144
}
10145
10145
10146
- if (err == DB_SUCCESS && (flags2 & DICT_TF2_FTS)) {
10147
- fts_optimize_add_table(table);
10148
- }
10149
-
10150
10146
error_ret:
10151
10147
DBUG_RETURN(convert_error_code_to_mysql(err, flags, thd));
10152
10148
}
@@ -11218,6 +11214,10 @@ ha_innobase::create(
11218
11214
trx_free_for_mysql(trx);
11219
11215
DBUG_RETURN(-1);
11220
11216
}
11217
+
11218
+ mutex_enter(&dict_sys->mutex);
11219
+ fts_optimize_add_table(innobase_table);
11220
+ mutex_exit(&dict_sys->mutex);
11221
11221
}
11222
11222
11223
11223
/* Note: We can't call update_thd() as prebuilt will not be
You can’t perform that action at this time.
0 commit comments