mariadb/mysql-test/suite/innodb/r
Marko Mäkelä b26e603aeb MDEV-17859 Operating system errors in file operations after failed CREATE
This is a regression due to MDEV-17816.

When creating a table fails, we must roll back the dictionary
transaction. Because the rollback may rename tables, and because
InnoDB lacks proper undo logging for CREATE operations, we must
drop the incompletely created table before rolling back the
transaction, which could include a RENAME operation.
But, we must not blindly drop the table by name; after all,
the operation could have failed because another table by the
same name already existed.

create_table_info_t::m_drop_before_rollback: A flag that is set
if the table needs to be dropped before transaction rollback.

create_table_info_t::create_table(): Remove some duplicated
error handling.

ha_innobase::create(): On error, only drop the table if it was
actually created.
2018-11-28 15:17:56 +02:00
..
101_compatibility.result
add_constraint.result
alter_copy.result
alter_crash.result
alter_foreign_crash.result
alter_inplace_perfschema.result
alter_key_block_size-11757.result
alter_kill.result
alter_missing_tablespace.result
alter_partitioned_debug.result
alter_partitioned_xa.result
alter_rename_existing.result
alter_rename_files.result
alter_table.result
analyze_table.result
auto_increment_dup,skip-log-bin.rdiff
auto_increment_dup.result
autoinc_debug.result
autoinc_persist.result
binlog_consistent.result
blob-update-debug.result
blob_unique2pk.result
count_distinct.result
create-index-debug.result
create-index.result
create_isl_with_direct.result
data_types.result
deadlock_detect.result
default_row_format_alter.result
default_row_format_compatibility.result
default_row_format_create,dynamic.rdiff
default_row_format_create,redundant.rdiff
default_row_format_create.result
defrag_mdl-9155.result
doublewrite.result
drop_table_background.result
dropdb.result
fake_changes-7000.result
file_format_defaults.result
foreign-keys.result
foreign_key.result
group_commit.result
group_commit_binlog_pos.result
group_commit_binlog_pos_no_optimize_thread.result
group_commit_crash.result
group_commit_crash_no_optimize_thread.result
group_commit_no_optimize_thread.result
help_url.result
ibuf_not_empty.result
index_merge_threshold.result
index_tree_operation.result
innochecksum.result
innodb-16k.result
innodb-32k-crash.result
innodb-32k.result
innodb-64k-crash.result
innodb-64k.result
innodb-agregate.result
innodb-alter-autoinc.result
innodb-alter-debug.result
innodb-alter-nullable.result
innodb-alter-table.result
innodb-alter-tempfile.result
innodb-alter-timestamp.result
innodb-alter.result
innodb-analyze.result
innodb-autoinc-18274.result
innodb-autoinc-44030.result
innodb-autoinc-56228.result
innodb-autoinc-61209.result
innodb-autoinc-optimize.result
innodb-autoinc.result
innodb-bigblob.result
innodb-blob.result
innodb-bug-14068765.result
innodb-bug-14084530.result
innodb-change-buffer-recovery.result
innodb-changed-pages.result
innodb-consistent.result
innodb-corrupted-table.result
innodb-dict.result
innodb-enlarge-blob.result
innodb-fk-virtual.result
innodb-fk-warnings.result
innodb-fk.result
innodb-fkcheck.result
innodb-flush-changed-page-bitmaps.result
innodb-get-fk.result
innodb-index,debug.rdiff
innodb-index-debug.result
innodb-index-online,crypt.rdiff
innodb-index-online-delete.result
innodb-index-online-fk.result
innodb-index-online-norebuild.result
innodb-index-online-purge.result
innodb-index-online.result
innodb-index.result
innodb-index_ucs2.result
innodb-isolation.result
innodb-lock-schedule-algorithm.result
innodb-lock.result
innodb-lru-force-no-free-page.result
innodb-mdev-7408.result
innodb-mdev-7513.result
innodb-mdev7046.result
innodb-on-duplicate-update.result
innodb-online-alter-gis.result
innodb-page_compression_bzip2.result
innodb-page_compression_default.result
innodb-page_compression_lz4.result
innodb-page_compression_lzma.result
innodb-page_compression_lzo.result
innodb-page_compression_snappy.result
innodb-page_compression_tables.result
innodb-page_compression_zip.result
innodb-replace-debug.result
innodb-replace.result
innodb-semi-consistent.result
innodb-stats-initialize-failure.result
innodb-stats-modified-counter.result
innodb-stats-sample.result
innodb-table-online,crypt.rdiff
innodb-table-online.result
innodb-timeout.result
innodb-trim.result
innodb-truncate.result
innodb-ucs2.result
innodb-update-insert.result
innodb-virtual-columns.result
innodb-virtual-columns2.result
innodb-wl5522-1.result
innodb-wl5522-debug.result
innodb-wl5522.result
innodb-wl5980-alter.result
innodb-xa.result
innodb.result
innodb_autoinc_lock_mode_zero.result
innodb_blob_truncate.result
innodb_buffer_pool_resize.result
innodb_buffer_pool_resize_with_chunks.result
innodb_bug21704.result
innodb_bug30423.result
innodb_bug30919.result
innodb_bug34053.result
innodb_bug34300.result
innodb_bug35220.result
innodb_bug38231.result
innodb_bug39438.result
innodb_bug40360.result
innodb_bug40565.result
innodb_bug41904.result
innodb_bug42101-nonzero.result
innodb_bug42101.result
innodb_bug42419.result
innodb_bug44032.result
innodb_bug44369.result
innodb_bug44571.result
innodb_bug45357.result
innodb_bug46000.result
innodb_bug46676.result
innodb_bug47167.result
innodb_bug47621.result
innodb_bug47622.result
innodb_bug47777.result
innodb_bug48024.result
innodb_bug49164.result
innodb_bug51378.result
innodb_bug51920.result
innodb_bug52199.result
innodb_bug52663.result
innodb_bug53046.result
innodb_bug53290.result
innodb_bug53592.result
innodb_bug53674.result
innodb_bug53756.result
innodb_bug54044.result
innodb_bug56143.result
innodb_bug56716.result
innodb_bug56947.result
innodb_bug57252.result
innodb_bug57255.result
innodb_bug57904.result
innodb_bug59307.result
innodb_bug59410.result
innodb_bug59641.result
innodb_bug59733.result
innodb_bug60049.result
innodb_bug60196.result
innodb_bug60229.result
innodb_bug68148.result
innodb_bug11754376.result
innodb_bug12400341.result
innodb_bug12661768.result
innodb_bug12902967.result
innodb_bug13510739.result
innodb_bug14007649.result
innodb_bug14147491.result
innodb_bug14676111.result
innodb_bug14704286.result
innodb_bug27216817.result
innodb_bulk_create_index.result
innodb_bulk_create_index_debug.result
innodb_bulk_create_index_flush.result
innodb_bulk_create_index_replication.result
innodb_bulk_create_index_small.result
innodb_corrupt_bit.result
innodb_ctype_big5.result
innodb_ctype_latin1.result
innodb_ctype_ldml.result
innodb_ctype_utf8.result
innodb_defrag_binlog.result
innodb_defrag_concurrent.result
innodb_defrag_stats.result
innodb_defrag_stats_many_tables.result
innodb_defragment.result
innodb_defragment_fill_factor.result
innodb_defragment_small.result
innodb_file_format.result
innodb_force_pk.result
innodb_force_recovery.result
innodb_gis.result
innodb_information_schema.result
innodb_information_schema_buffer.result
innodb_information_schema_tables.result
innodb_lock_wait_timeout_1.result
innodb_max_recordsize_32k.result
innodb_max_recordsize_64k.result
innodb_multi_update.result
innodb_mutexes.result
innodb_mysql.result
innodb_mysql_rbk.result
innodb_notembedded.result
innodb_prefix_index_restart_server.result
innodb_query_cache.result
innodb_simulate_comp_failures.result
innodb_simulate_comp_failures_small.result
innodb_skip_innodb_is_tables.result
innodb_stats.result
innodb_stats_create_on_corrupted.result
innodb_stats_create_table.result
innodb_stats_drop_locked.result
innodb_stats_fetch.result
innodb_stats_fetch_corrupted.result
innodb_stats_fetch_nonexistent.result
innodb_stats_persistent.result
innodb_stats_persistent_debug.result
innodb_stats_rename_table.result
innodb_stats_rename_table_if_exists.result
innodb_sys_semaphore_waits.result
innodb_timeout_rollback.result
innodb_trx_weight.result
innodb_uninstall.result
innodb_xtradb_compat.result
innodb_zip_innochecksum.result
innodb_zip_innochecksum2.result
innodb_zip_innochecksum3.result
insert_debug.result
lock_deleted.result
log_alter_table.result
log_corruption.result
log_data_file_size.result
log_file.result
log_file_name.result
log_file_name_debug.result
log_file_size.result
mdev-117.result
mdev-15707.result
monitor.result
multi_repair-7404.result
mvcc.result
purge_secondary.result
purge_thread_shutdown.result
read_only_recover_committed.result
read_only_recovery.result
readahead.result
recovery_shutdown.result
redo_log_during_checkpoint.result
rename_table.result
rename_table_debug.result
restart.result
row_format_redundant.result
row_lock.result
snapshot.result
sp_temp_table.result
stored_fk.result
strict_mode.result
system_tables.result
table_definition_cache_debug.result
table_flags,4k,debug.rdiff
table_flags,4k,release.rdiff
table_flags,8k,debug.rdiff
table_flags,8k,release.rdiff
table_flags,32k,debug.rdiff
table_flags,32k,release.rdiff
table_flags,64k,debug.rdiff
table_flags,64k,release.rdiff
table_flags,debug.rdiff
table_flags.result
table_index_statistics.result
temp_table.result
temp_table_savepoint.result
temporary_table.result
temporary_table_optimization.result
tmpdir.result
trigger.result
trigger_error.result
truncate.result
truncate_crash.result
truncate_debug.result
truncate_foreign.result
truncate_inject.result
truncate_missing.result
truncate_purge_debug.result
truncate_restart.result
undo_log.result
undo_truncate.result
undo_truncate_recover.result
update-cascade.result
update_time.result
update_time_wl6658.result
xa_recovery.result