summaryrefslogtreecommitdiff
path: root/storage/innobase/include/dict0boot.h
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2016-11-14 06:14:28 +0000
committerAleksey Midenkov <midenok@gmail.com>2017-05-05 20:36:17 +0300
commitd54d36c45e1eb14bb549dd225a28bea1d168754a (patch)
tree3630e2672aa5cd5a94e767dea7691c742ee84675 /storage/innobase/include/dict0boot.h
parent07cc46acea56e7fdaab6ac3555ebc4cff078f1f0 (diff)
downloadmariadb-git-d54d36c45e1eb14bb549dd225a28bea1d168754a.tar.gz
IB, SQL: (0.4) COMMIT_ID-based ordering of transactions
IB: * removed CONCURR_TRX from VTQ; * new fields in VTQ: COMMIT_ID, ISO_LEVEL. SQL: * renamed BEGIN_TS, COMMIT_TS to VTQ_BEGIN_TS, VTQ_COMMIT_TS; * new functions: VTQ_COMMIT_ID, VTQ_ISO_LEVEL, VTQ_TRX_ID, VTQ_TRX_SEES, VTQ_TRX_SEES_EQ; * versioned SELECT for IB uses VTQ_TRX_SEES, VTQ_TRX_SEES_EQ. Closes #71
Diffstat (limited to 'storage/innobase/include/dict0boot.h')
-rw-r--r--storage/innobase/include/dict0boot.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/storage/innobase/include/dict0boot.h b/storage/innobase/include/dict0boot.h
index 22b0489386d..bc9fed90f68 100644
--- a/storage/innobase/include/dict0boot.h
+++ b/storage/innobase/include/dict0boot.h
@@ -325,11 +325,16 @@ enum dict_fld_sys_datafiles_enum {
DICT_FLD__SYS_DATAFILES__PATH = 3,
DICT_NUM_FIELDS__SYS_DATAFILES = 4
};
+
/* The columns in SYS_VTQ */
enum dict_col_sys_vtq_enum
{
DICT_COL__SYS_VTQ__TRX_ID = 0,
- DICT_NUM_COLS__SYS_VTQ = 1
+ DICT_COL__SYS_VTQ__COMMIT_ID = 1,
+ DICT_COL__SYS_VTQ__BEGIN_TS = 2,
+ DICT_COL__SYS_VTQ__COMMIT_TS = 3,
+ DICT_COL__SYS_VTQ__ISOLATION_LEVEL = 4,
+ DICT_NUM_COLS__SYS_VTQ = 5
};
/* The field numbers in the SYS_VTQ clustered index */
enum dict_fld_sys_vtq_enum
@@ -337,10 +342,11 @@ enum dict_fld_sys_vtq_enum
DICT_FLD__SYS_VTQ__TRX_ID = 0,
DICT_FLD__SYS_VTQ__DB_TRX_ID = 1,
DICT_FLD__SYS_VTQ__DB_ROLL_PTR = 2,
- DICT_FLD__SYS_VTQ__BEGIN_TS = 3,
- DICT_FLD__SYS_VTQ__COMMIT_TS = 4,
- DICT_FLD__SYS_VTQ__CONCURR_TRX = 5,
- DICT_NUM_FIELDS__SYS_VTQ = 6
+ DICT_FLD__SYS_VTQ__COMMIT_ID = 3,
+ DICT_FLD__SYS_VTQ__BEGIN_TS = 4,
+ DICT_FLD__SYS_VTQ__COMMIT_TS = 5,
+ DICT_FLD__SYS_VTQ__ISOLATION_LEVEL = 6,
+ DICT_NUM_FIELDS__SYS_VTQ = 7
};
/* The columns in SYS_VIRTUAL */