Debian Codegraph @

mysql-test/suite/innodb/r/high_prio_trx_1.result

raw
1 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
2 INSERT INTO t1 VALUES (0);
3
4 # On connection 1
5 START TRANSACTION;
6 UPDATE t1 SET c1=1 WHERE c1=0;
7
8 # On connection 2
9 include/start_transaction_high_prio.inc
10 START TRANSACTION /* HIGH PRIORITY */;
11 UPDATE t1 SET c1=2 WHERE c1=0;
12 COMMIT;
13
14 # On connection 1
15 COMMIT;
16 ERROR HY000: Got error 149 - 'Lock deadlock; Retry transaction' during COMMIT
17 include/assert.inc ['There is a 2 in t1']
18 include/assert.inc ['There is no 1 in t1']
19 include/assert.inc ['There is no 0 in t1']
20 DROP TABLE t1;