mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
d54d36c45e
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
22 lines
560 B
C++
22 lines
560 B
C++
-- source include/have_innodb.inc
|
|
|
|
set @@session.time_zone='+00:00';
|
|
select ifnull(max(trx_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
|
|
|
delimiter ~~;
|
|
create procedure if not exists verify_vtq()
|
|
begin
|
|
set @i= 0;
|
|
select
|
|
@i:= @i + 1 as No,
|
|
trx_id > 0 as A,
|
|
commit_id >= trx_id as B,
|
|
begin_ts > '1-1-1 0:0:0' as C,
|
|
commit_ts > begin_ts as D
|
|
from information_schema.innodb_vtq
|
|
where trx_id > @start_trx_id;
|
|
select ifnull(max(trx_id), 0)
|
|
into @start_trx_id
|
|
from information_schema.innodb_vtq;
|
|
end~~
|
|
delimiter ;~~
|