Commit b504c56b authored by Sergei Petrunia's avatar Sergei Petrunia

MariaRocks: test result MariaDB-fication

The test stopped giving deadlock errors after the previous cset.
parent e6afa256
connect con, localhost, root,,;
connection default;
SET debug_sync='RESET';
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (pk INT PRIMARY KEY COMMENT "", a INT);
INSERT INTO t1 VALUES(1,1), (2,2), (3,3);
connection con;
SET debug_sync='rocksdb_concurrent_delete SIGNAL parked WAIT_FOR go';
SELECT * FROM t1 order by t1.pk ASC FOR UPDATE;
connection default;
SET debug_sync='now WAIT_FOR parked';
DELETE FROM t1 WHERE pk = 1;
SET debug_sync='now SIGNAL go';
connection con;
pk a
2 2
3 3
connection default;
disconnect con;
set debug_sync='RESET';
drop table t1;
connect con, localhost, root,,;
connection default;
SET debug_sync='RESET';
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (pk INT PRIMARY KEY COMMENT "", a INT);
INSERT INTO t1 VALUES(1,1), (2,2), (3,3);
connection con;
SET debug_sync='rocksdb_concurrent_delete SIGNAL parked WAIT_FOR go';
SELECT * FROM t1 order by t1.pk DESC FOR UPDATE;
connection default;
SET debug_sync='now WAIT_FOR parked';
DELETE FROM t1 WHERE pk = 3;
SET debug_sync='now SIGNAL go';
connection con;
pk a
2 2
1 1
connection default;
disconnect con;
set debug_sync='RESET';
drop table t1;
connect con, localhost, root,,;
connection default;
SET debug_sync='RESET';
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (pk INT PRIMARY KEY COMMENT "rev:cf2", a INT);
INSERT INTO t1 VALUES(1,1), (2,2), (3,3);
connection con;
SET debug_sync='rocksdb_concurrent_delete SIGNAL parked WAIT_FOR go';
SELECT * FROM t1 order by t1.pk ASC FOR UPDATE;
connection default;
SET debug_sync='now WAIT_FOR parked';
DELETE FROM t1 WHERE pk = 1;
SET debug_sync='now SIGNAL go';
connection con;
pk a
2 2
3 3
connection default;
disconnect con;
set debug_sync='RESET';
drop table t1;
connect con, localhost, root,,;
connection default;
SET debug_sync='RESET';
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (pk INT PRIMARY KEY COMMENT "rev:cf2", a INT);
INSERT INTO t1 VALUES(1,1), (2,2), (3,3);
connection con;
SET debug_sync='rocksdb_concurrent_delete SIGNAL parked WAIT_FOR go';
SELECT * FROM t1 order by t1.pk DESC FOR UPDATE;
connection default;
SET debug_sync='now WAIT_FOR parked';
DELETE FROM t1 WHERE pk = 3;
SET debug_sync='now SIGNAL go';
connection con;
pk a
2 2
1 1
connection default;
disconnect con;
set debug_sync='RESET';
drop table t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment