Debian Codegraph @

mysql-test/suite/ndb/r/ndb_gsl_mdl_deadlock.result

raw
1 #
2 # Bug#31875229 DEADLOCK BETWEEN CREATE DATABASE IF NOT EXISTS AND CREATE TABLE
3 #
4 Send DDLs from both clients to trigger a deadlock
5 connection client1;
6 SET DEBUG_SYNC = 'ndb_global_schema_lock_acquired WAIT_FOR schema_mdl_acquired';
7 CREATE DATABASE IF NOT EXISTS test;
8 connection client2;
9 SET DEBUG_SYNC = 'mdl_upgrade_lock SIGNAL schema_mdl_acquired';
10 CREATE TABLE t1 (a int) engine ndb;
11 # Reap both DDLs and verify that they succeeded after resolving the deadlock
12 connection client1;
13 connection client2;
14 Cleanup
15 DROP TABLE t1;