mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-15893 Rename VTQ to TRT
This commit is contained in:
committed by
Sergei Golubchik
parent
a4272bf154
commit
fe10bf870c
@@ -10,7 +10,7 @@ with system versioning
|
||||
engine innodb;
|
||||
|
||||
|
||||
# VTQ_TRX_ID, VTQ_COMMIT_ID, VTQ_TRX_SEES #
|
||||
# TRT_TRX_ID, TRT_COMMIT_ID, TRT_TRX_SEES #
|
||||
|
||||
insert into t1 values ();
|
||||
|
||||
@@ -36,36 +36,36 @@ order by transaction_id desc limit 1;
|
||||
set @ts3= now(6);
|
||||
|
||||
select
|
||||
vtq_trx_id(@ts0) < @tx0 as A,
|
||||
vtq_trx_id(@ts0, true) = @tx0 as B,
|
||||
vtq_trx_id(@ts1) = @tx0 as C,
|
||||
vtq_trx_id(@ts1, true) = @tx1 as D,
|
||||
vtq_trx_id(@ts2) = @tx1 as E,
|
||||
vtq_trx_id(@ts2, true) = @tx2 as F,
|
||||
vtq_trx_id(@ts3) = @tx2 as G,
|
||||
vtq_trx_id(@ts3, true) is null as H;
|
||||
trt_trx_id(@ts0) < @tx0 as A,
|
||||
trt_trx_id(@ts0, true) = @tx0 as B,
|
||||
trt_trx_id(@ts1) = @tx0 as C,
|
||||
trt_trx_id(@ts1, true) = @tx1 as D,
|
||||
trt_trx_id(@ts2) = @tx1 as E,
|
||||
trt_trx_id(@ts2, true) = @tx2 as F,
|
||||
trt_trx_id(@ts3) = @tx2 as G,
|
||||
trt_trx_id(@ts3, true) is null as H;
|
||||
|
||||
select
|
||||
vtq_commit_id(@ts0) < @tx0 as A,
|
||||
vtq_commit_id(@ts0, true) = vtq_commit_id(null, @tx0) as B,
|
||||
vtq_commit_id(@ts1) = vtq_commit_id(null, @tx0) as C,
|
||||
vtq_commit_id(@ts1, true) = vtq_commit_id(null, @tx1) as D,
|
||||
vtq_commit_id(@ts2) = vtq_commit_id(null, @tx1) as E,
|
||||
vtq_commit_id(@ts2, true) = vtq_commit_id(null, @tx2) as F,
|
||||
vtq_commit_id(@ts3) = vtq_commit_id(null, @tx2) as G,
|
||||
vtq_commit_id(@ts3, true) is null as H;
|
||||
trt_commit_id(@ts0) < @tx0 as A,
|
||||
trt_commit_id(@ts0, true) = trt_commit_id(null, @tx0) as B,
|
||||
trt_commit_id(@ts1) = trt_commit_id(null, @tx0) as C,
|
||||
trt_commit_id(@ts1, true) = trt_commit_id(null, @tx1) as D,
|
||||
trt_commit_id(@ts2) = trt_commit_id(null, @tx1) as E,
|
||||
trt_commit_id(@ts2, true) = trt_commit_id(null, @tx2) as F,
|
||||
trt_commit_id(@ts3) = trt_commit_id(null, @tx2) as G,
|
||||
trt_commit_id(@ts3, true) is null as H;
|
||||
|
||||
select
|
||||
vtq_trx_sees(@tx1, @tx0) as A,
|
||||
not vtq_trx_sees(@tx0, @tx1) as B,
|
||||
vtq_trx_sees_eq(@tx1, @tx1) as C,
|
||||
not vtq_trx_sees(@tx1, @tx1) as D,
|
||||
vtq_trx_sees(@tx2, 0) as E,
|
||||
vtq_trx_sees(-1, @tx2) as F;
|
||||
trt_trx_sees(@tx1, @tx0) as A,
|
||||
not trt_trx_sees(@tx0, @tx1) as B,
|
||||
trt_trx_sees_eq(@tx1, @tx1) as C,
|
||||
not trt_trx_sees(@tx1, @tx1) as D,
|
||||
trt_trx_sees(@tx2, 0) as E,
|
||||
trt_trx_sees(-1, @tx2) as F;
|
||||
|
||||
select vtq_trx_sees(0, @tx2);
|
||||
select trt_trx_sees(0, @tx2);
|
||||
|
||||
# VTQ_ISO_LEVEL #
|
||||
# TRT_ISO_LEVEL #
|
||||
|
||||
set transaction isolation level read uncommitted;
|
||||
insert into t1 values ();
|
||||
@@ -89,6 +89,6 @@ select isolation_level = 'REPEATABLE-READ' from mysql.transaction_registry where
|
||||
|
||||
|
||||
drop table t1;
|
||||
call verify_vtq;
|
||||
call verify_trt;
|
||||
|
||||
-- source suite/versioning/common_finish.inc
|
||||
|
Reference in New Issue
Block a user