diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2019-01-30 00:00:06 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2019-04-03 17:43:12 +0400 |
commit | 5d8ca989974734e931cf247434e9f96297e4af4d (patch) | |
tree | aa6f7b2896ed1550bef523326cb35a9c5d541480 /sql/ha_partition.cc | |
parent | 38e151d155bee0d554b30cabc7f367187a75c459 (diff) | |
download | mariadb-git-5d8ca989974734e931cf247434e9f96297e4af4d.tar.gz |
Get rid of rea_create_table()
Moved rea_create_table() to the sole caller.
Also ha_create_partitioning_metadata(CHF_CREATE_FLAG) does cleanup on
error now.
Part of MDEV-17805 - Remove InnoDB cache for temporary tables.
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r-- | sql/ha_partition.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index 6d12a0aa55a..9dcd57a5f82 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -2828,6 +2828,8 @@ bool ha_partition::create_handler_file(const char *name) } } (void) mysql_file_close(file, MYF(0)); + if (result) + mysql_file_delete(key_file_partition, file_name, MYF(MY_WME)); } else result= TRUE; |