Skip to content

Commit ecd3a7e

Browse files
committed
Merge 10.0 into 10.1
2 parents 2a2e8ea + 12b1ba1 commit ecd3a7e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

storage/innobase/handler/ha_innodb.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11015,10 +11015,6 @@ create_table_def(
1101511015
: ER_TABLESPACE_EXISTS, MYF(0), display_name);
1101611016
}
1101711017

11018-
if (err == DB_SUCCESS && (flags2 & DICT_TF2_FTS)) {
11019-
fts_optimize_add_table(table);
11020-
}
11021-
1102211018
error_ret:
1102311019
DBUG_RETURN(convert_error_code_to_mysql(err, flags, thd));
1102411020
}
@@ -12296,6 +12292,10 @@ ha_innobase::create(
1229612292
trx_free_for_mysql(trx);
1229712293
DBUG_RETURN(-1);
1229812294
}
12295+
12296+
mutex_enter(&dict_sys->mutex);
12297+
fts_optimize_add_table(innobase_table);
12298+
mutex_exit(&dict_sys->mutex);
1229912299
}
1230012300

1230112301
/* Note: We can't call update_thd() as prebuilt will not be

storage/xtradb/handler/ha_innodb.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11584,10 +11584,6 @@ create_table_def(
1158411584
: ER_TABLESPACE_EXISTS, MYF(0), display_name);
1158511585
}
1158611586

11587-
if (err == DB_SUCCESS && (flags2 & DICT_TF2_FTS)) {
11588-
fts_optimize_add_table(table);
11589-
}
11590-
1159111587
error_ret:
1159211588
DBUG_RETURN(convert_error_code_to_mysql(err, flags, thd));
1159311589
}
@@ -12869,6 +12865,10 @@ ha_innobase::create(
1286912865
trx_free_for_mysql(trx);
1287012866
DBUG_RETURN(-1);
1287112867
}
12868+
12869+
mutex_enter(&dict_sys->mutex);
12870+
fts_optimize_add_table(innobase_table);
12871+
mutex_exit(&dict_sys->mutex);
1287212872
}
1287312873

1287412874
/* Note: We can't call update_thd() as prebuilt will not be

0 commit comments

Comments
 (0)