Skip to content

Commit 557e1bd

Browse files
committed
dict_create_or_check_sys_tablespace(): Add some error handling
These errors should only be possible when bootstrap is aborted and restarted.
1 parent a71c870 commit 557e1bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

storage/innobase/dict/dict0crea.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2506,6 +2506,7 @@ dict_create_or_check_sys_tablespace(void)
25062506
<< ". Dropping incompletely created tables.";
25072507

25082508
ut_a(err == DB_OUT_OF_FILE_SPACE
2509+
|| err == DB_DUPLICATE_KEY
25092510
|| err == DB_TOO_MANY_CONCURRENT_TRXS);
25102511

25112512
row_drop_table_for_mysql("SYS_TABLESPACES", trx, TRUE, TRUE);
@@ -2533,11 +2534,11 @@ dict_create_or_check_sys_tablespace(void)
25332534

25342535
sys_tablespaces_err = dict_check_if_system_table_exists(
25352536
"SYS_TABLESPACES", DICT_NUM_FIELDS__SYS_TABLESPACES + 1, 1);
2536-
ut_a(sys_tablespaces_err == DB_SUCCESS);
2537+
ut_a(sys_tablespaces_err == DB_SUCCESS || err != DB_SUCCESS);
25372538

25382539
sys_datafiles_err = dict_check_if_system_table_exists(
25392540
"SYS_DATAFILES", DICT_NUM_FIELDS__SYS_DATAFILES + 1, 1);
2540-
ut_a(sys_datafiles_err == DB_SUCCESS);
2541+
ut_a(sys_datafiles_err == DB_SUCCESS || err != DB_SUCCESS);
25412542

25422543
return(err);
25432544
}

0 commit comments

Comments
 (0)