summaryrefslogtreecommitdiff
path: root/sql/ha_partition.h
diff options
context:
space:
mode:
authormikael/pappa@dator5.(none) <>2006-08-07 06:22:08 -0400
committermikael/pappa@dator5.(none) <>2006-08-07 06:22:08 -0400
commit3e6b0b0bdae14019374dca155fe44ef8fc9aa91b (patch)
tree03673cb7d8c5ccc752ae32ca240083491a71cd3e /sql/ha_partition.h
parenta4eb61b88cbe4e8f6e43db2ca841fa60ec73467c (diff)
downloadmariadb-git-3e6b0b0bdae14019374dca155fe44ef8fc9aa91b.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.
Diffstat (limited to 'sql/ha_partition.h')
-rw-r--r--sql/ha_partition.h10
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: