diff options
Diffstat (limited to 'innobase/dict')
-rw-r--r-- | innobase/dict/dict0crea.c | 7 | ||||
-rw-r--r-- | innobase/dict/dict0dict.c | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/innobase/dict/dict0crea.c b/innobase/dict/dict0crea.c index 9d1ec53645d..a5077252c6a 100644 --- a/innobase/dict/dict0crea.c +++ b/innobase/dict/dict0crea.c @@ -301,9 +301,12 @@ dict_build_table_def_step( - page 2 is the first inode page, - page 3 will contain the root of the clustered index of the table we create here. */ + + table->space = 0; /* reset to zero for the call below */ error = fil_create_new_single_table_tablespace( - &(table->space), table->name, 4); + &(table->space), table->name, + FIL_IBD_FILE_INITIAL_SIZE); if (error != DB_SUCCESS) { return(error); @@ -311,7 +314,7 @@ dict_build_table_def_step( mtr_start(&mtr); - fsp_header_init(table->space, 4, &mtr); + fsp_header_init(table->space, FIL_IBD_FILE_INITIAL_SIZE, &mtr); mtr_commit(&mtr); } diff --git a/innobase/dict/dict0dict.c b/innobase/dict/dict0dict.c index 9056c974f02..0ae36eec6dc 100644 --- a/innobase/dict/dict0dict.c +++ b/innobase/dict/dict0dict.c @@ -2580,7 +2580,7 @@ dict_create_foreign_constraints_low( sprintf(buf + strlen(buf), " Error in foreign key constraint of table %.500s.\n" "Cannot find the table from the internal data dictionary of InnoDB.\n" -"Create table statement:\n%.2000\n", name, sql_string); +"Create table statement:\n%.2000s\n", name, sql_string); ut_a(strlen(buf) < DICT_FOREIGN_ERR_BUF_LEN); mutex_exit(&dict_foreign_err_mutex); |