diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-12-14 18:35:12 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-12-14 20:19:14 +0100 |
commit | 18405e5fd994c37698c6fbf0996ecc9e7d1af0f2 (patch) | |
tree | 243f7fdad5d603ca30ead2da414c787683eec2b9 /sql/partition_info.h | |
parent | f149013393dcef06940cc82f11247ceafb935fae (diff) | |
download | mariadb-git-18405e5fd994c37698c6fbf0996ecc9e7d1af0f2.tar.gz |
Partitioning syntax for versioning
partition by system_time (
partition p0 history,
partition pn current
)
Diffstat (limited to 'sql/partition_info.h')
-rw-r--r-- | sql/partition_info.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/partition_info.h b/sql/partition_info.h index 6b79fa82fb8..359eae6e8cb 100644 --- a/sql/partition_info.h +++ b/sql/partition_info.h @@ -58,11 +58,11 @@ struct Vers_part_info : public Sql_alloc if (now_part) { DBUG_ASSERT(now_part->id != UINT32_MAX); - DBUG_ASSERT(now_part->type() == partition_element::AS_OF_NOW); + DBUG_ASSERT(now_part->type() == partition_element::CURRENT); DBUG_ASSERT(!fully || (bool) hist_part); DBUG_ASSERT(!hist_part || ( hist_part->id != UINT32_MAX && - hist_part->type() == partition_element::VERSIONING)); + hist_part->type() == partition_element::HISTORY)); return true; } return false; @@ -436,7 +436,7 @@ public: while ((el= it++)) { DBUG_ASSERT(el->type() != partition_element::CONVENTIONAL); - if (el->type() == partition_element::VERSIONING && + if (el->type() == partition_element::HISTORY && el->id == table->s->hist_part_id) { vers_info->hist_part= el; @@ -508,7 +508,7 @@ public: { DBUG_ASSERT(vers_info && vers_info->initialized()); DBUG_ASSERT(table && table->s); - DBUG_ASSERT(el && el->type() == partition_element::VERSIONING); + DBUG_ASSERT(el && el->type() == partition_element::HISTORY); bool updated; mysql_rwlock_wrlock(&table->s->LOCK_stat_serial); el->empty= false; |