CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
INSERT INTO t1 VALUES (0), (1);
SET GLOBAL innodb_fast_shutdown = 0;
# restart: --innodb-read-only
START TRANSACTION WITH CONSISTENT SNAPSHOT;
SELECT * FROM t1;
a
0
1
START TRANSACTION WITH CONSISTENT SNAPSHOT FROM SESSION $con1_id;
Warnings:
Warning	138	InnoDB: WITH CONSISTENT SNAPSHOT FROM SESSION was ignored because the target transaction has not been assigned a read view.
SELECT * FROM t1;
a
0
1
ROLLBACK;
ROLLBACK;
# restart
DROP TABLE t1;
