diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2017-09-05 16:49:08 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2017-09-06 23:40:13 +0300 |
commit | a734c2f0fb44b777866d8b0bc9ec46a08e4e6505 (patch) | |
tree | 2f0e625fab63f3283a4a1dc071221d0df041a462 /sql/partition_element.h | |
parent | 40e3922ac2b0b0eb1547a399a1834d9a9d48b8cf (diff) | |
download | mariadb-git-a734c2f0fb44b777866d8b0bc9ec46a08e4e6505.tar.gz |
Style: partitioning, sysvars, handler fixes
* Sys_var_vers_asof formatting
* Vers_field_stats renamed to Vers_min_max_stats
* Item_temporal_literal::set_lower()/set_higher() replaced by operator>()/operator<()
* handler API comments
Diffstat (limited to 'sql/partition_element.h')
-rw-r--r-- | sql/partition_element.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/partition_element.h b/sql/partition_element.h index 18276ef713e..723d2f21a46 100644 --- a/sql/partition_element.h +++ b/sql/partition_element.h @@ -90,7 +90,9 @@ typedef struct p_elem_val struct st_ddl_log_memory_entry; -class Vers_field_stats : public Sql_alloc +/* Used for collecting MIN/MAX stats on sys_trx_end for doing pruning + in SYSTEM_TIME partitiong. */ +class Vers_min_max_stats : public Sql_alloc { static const uint buf_size= 4 + (TIME_SECOND_PART_DIGITS + 1) / 2; uchar min_buf[buf_size]; @@ -100,7 +102,7 @@ class Vers_field_stats : public Sql_alloc mysql_rwlock_t lock; public: - Vers_field_stats(const char *field_name, TABLE_SHARE *share) : + Vers_min_max_stats(const char *field_name, TABLE_SHARE *share) : min_value(min_buf, NULL, 0, Field::NONE, field_name, share, 6), max_value(max_buf, NULL, 0, Field::NONE, field_name, share, 6) { @@ -108,7 +110,7 @@ public: memset(max_buf, 0, buf_size); mysql_rwlock_init(key_rwlock_LOCK_vers_stats, &lock); } - ~Vers_field_stats() + ~Vers_min_max_stats() { mysql_rwlock_destroy(&lock); } |