diff options
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r-- | sql/partition_info.cc | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc index da34a4dbf0f..dacb8e32353 100644 --- a/sql/partition_info.cc +++ b/sql/partition_info.cc @@ -856,21 +856,6 @@ bool partition_info::has_unique_name(partition_element *element) DBUG_RETURN(TRUE); } -bool partition_info::vers_init_info(THD * thd) -{ - part_type= VERSIONING_PARTITION; - list_of_part_fields= TRUE; - column_list= TRUE; - num_columns= 1; - vers_info= new (thd->mem_root) Vers_part_info; - if (!vers_info) - { - mem_alloc_error(sizeof(Vers_part_info)); - return true; - } - return false; -} - void partition_info::vers_set_hist_part(THD *thd) { if (vers_info->limit) @@ -2747,6 +2732,22 @@ bool check_partition_dirs(partition_info *part_info) #endif /* WITH_PARTITION_STORAGE_ENGINE */ +bool partition_info::vers_init_info(THD * thd) +{ + part_type= VERSIONING_PARTITION; + list_of_part_fields= TRUE; + column_list= TRUE; + num_columns= 1; + vers_info= new (thd->mem_root) Vers_part_info; + if (!vers_info) + { + mem_alloc_error(sizeof(Vers_part_info)); + return true; + } + return false; +} + + bool partition_info::error_if_requires_values() const { switch (part_type) { |