diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-03-28 19:19:17 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-03-30 09:45:01 +0200 |
commit | 4c77ef36c69b2919f8d788c4de9e1f2da07410d7 (patch) | |
tree | 1af09b10fe25c7b58ff81ebefc45745bd04fa43e /sql/partition_info.cc | |
parent | ae6355f56ea1496a2de2ea271f95c89e47705ef0 (diff) | |
download | mariadb-git-4c77ef36c69b2919f8d788c4de9e1f2da07410d7.tar.gz |
compilation w/o partitioning
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) { |