diff options
author | unknown <mikael/pappa@dator5.(none)> | 2006-08-07 06:22:08 -0400 |
---|---|---|
committer | unknown <mikael/pappa@dator5.(none)> | 2006-08-07 06:22:08 -0400 |
commit | 09a27bb2176f74e0810968d74b41420aec0182ef (patch) | |
tree | 03673cb7d8c5ccc752ae32ca240083491a71cd3e /sql/ha_partition.h | |
parent | 5e2babfe624b2390c4530282d3abad0e761d89bd (diff) | |
download | mariadb-git-09a27bb2176f74e0810968d74b41420aec0182ef.tar.gz |
BUG#21350: No errors on using erroneus DATA DIRECTORY clause
set_up_table_before_create can fail due to erroneus path to
data directory or index directory
Added abort handling to ensure created partitions are dropped
if a failure occurs in the middle of the create process.
mysql-test/r/partition.result:
New test cases
mysql-test/t/partition.test:
New test cases
sql/ha_partition.cc:
set_up_table_before_create can fail due to erroneus path to
data directory or index directory
Added abort handling to ensure created partitions are dropped
if a failure occurs in the middle of the create process.
sql/ha_partition.h:
set_up_table_before_create can fail due to erroneus path to
data directory or index directory
Added abort handling to ensure created partitions are dropped
if a failure occurs in the middle of the create process.
Diffstat (limited to 'sql/ha_partition.h')
-rw-r--r-- | sql/ha_partition.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/ha_partition.h b/sql/ha_partition.h index c62f21cfaa1..c2e7a286e1d 100644 --- a/sql/ha_partition.h +++ b/sql/ha_partition.h @@ -222,11 +222,11 @@ private: bool new_handlers_from_part_info(MEM_ROOT *mem_root); bool create_handlers(MEM_ROOT *mem_root); void clear_handler_file(); - void set_up_table_before_create(TABLE *table_arg, - const char *partition_name_with_path, - HA_CREATE_INFO *info, - uint part_id, - partition_element *p_elem); + int set_up_table_before_create(TABLE *table_arg, + const char *partition_name_with_path, + HA_CREATE_INFO *info, + uint part_id, + partition_element *p_elem); partition_element *find_partition_element(uint part_id); public: |