⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
mysql
/
mysql-test
/
include
/
View File Name :
mrr_innodb_tests.inc
# MRR tests that are special for InnoDB --echo # --echo # Bug#41029 "MRR: SELECT FOR UPDATE fails to lock gaps (InnoDB table)" --echo # # This test verifies that a SELECT FOR UPDATE statement executed in # REPEATABLE READ isolation will lock the entire read interval by verifying # that a second transaction trying to update data within this interval will # be blocked. connect (con1,localhost,root,,); connect (con2,localhost,root,,); connection con1; SET AUTOCOMMIT=0; CREATE TABLE t1 ( dummy INT PRIMARY KEY, a INT UNIQUE, b INT ) ENGINE=InnoDB; INSERT INTO t1 VALUES (1,1,1),(3,3,3),(5,5,5); COMMIT; SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ; SELECT @@tx_isolation; START TRANSACTION; EXPLAIN SELECT * FROM t1 WHERE a > 2 FOR UPDATE; SELECT * FROM t1 WHERE a > 2 FOR UPDATE; connection con2; SET AUTOCOMMIT=0; START TRANSACTION; --error ER_LOCK_WAIT_TIMEOUT INSERT INTO t1 VALUES (2,2,2); ROLLBACK; connection con1; ROLLBACK; DROP TABLE t1; connection default; disconnect con1; disconnect con2; --echo # --echo # Bug#54286 "Server crash at lock timeout with MRR" --echo # connect (con1,localhost,root,,); connect (con2,localhost,root,,); connection con1; SET AUTOCOMMIT=0; CREATE TABLE t1 ( dummy INT PRIMARY KEY, a INT UNIQUE, b INT ) ENGINE=InnoDB; COMMIT; INSERT INTO t1 VALUES (1,1,1),(3,3,3),(5,5,5); connection con2; SET AUTOCOMMIT=0; --error ER_LOCK_WAIT_TIMEOUT SELECT * FROM t1 WHERE a > 2 FOR UPDATE; ROLLBACK; connection con1; ROLLBACK; DROP TABLE t1; COMMIT; connection default; disconnect con1; disconnect con2;