summaryrefslogtreecommitdiff
path: root/sql/partition_info.h
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2017-12-18 19:03:51 +0300
committerGitHub <noreply@github.com>2017-12-18 19:03:51 +0300
commitb55a149194e7f73b5ceb35a0a5d5fb575a8ba586 (patch)
tree5586c3cbb6189f5823bb71e983eb381f6769fda8 /sql/partition_info.h
parentd5e37621cf1dd2fe1a1226992be05ca57d595b79 (diff)
downloadmariadb-git-b55a149194e7f73b5ceb35a0a5d5fb575a8ba586.tar.gz
Timestamp-based versioning for InnoDB [closes #209]
* Removed integer_fields check * Reworked Vers_parse_info::check_sys_fields() * Misc renames * versioned as vers_sys_type_t * Removed versioned_by_sql(), versioned_by_engine() versioned() works as before; versioned(VERS_TIMESTAMP) is versioned_by_sql(); versioned(VERS_TRX_ID) is versioned_by_engine(). * create_tmp_table() fix * Foreign constraints for timestamp-based * Range auto-specifier fix * SQL: 1-row partition rotation fix [fixes #260] * Fix 'drop system versioning, algorithm=inplace'
Diffstat (limited to 'sql/partition_info.h')
-rw-r--r--sql/partition_info.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/partition_info.h b/sql/partition_info.h
index 359eae6e8cb..1e291a94e3f 100644
--- a/sql/partition_info.h
+++ b/sql/partition_info.h
@@ -512,7 +512,7 @@ public:
bool updated;
mysql_rwlock_wrlock(&table->s->LOCK_stat_serial);
el->empty= false;
- if (table->versioned_by_engine())
+ if (table->versioned(VERS_TRX_ID))
{
// transaction is not yet pushed to VTQ, so we use now-time
my_time_t end_ts= my_time_t(0);