Debian Codegraph @

mysql-test/suite/roles/acl_load_mutex-5170.test

raw
1 --source include/not_embedded.inc
2 #
3 # MDEV-5170 Assertion `(&(&acl_cache->lock)->m_mutex)->count > 0 && pthread_equal(pthread_self(), (&(&acl_cache->lock)->m_mutex)->thread)' fails after restarting server with a pre-created role grants
4 #
5 create user user1@localhost;
6 create role r1 with admin user1@localhost;
7 grant all on test.* to r1;
8 flush tables;
9
10 --append_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
11 wait
12 EOF
13 --shutdown_server
14 --source include/wait_until_disconnected.inc
15 --enable_reconnect
16 --append_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
17 restart
18 EOF
19 --source include/wait_until_connected_again.inc
20
21 select 1;
22
23 drop role r1;
24 drop user user1@localhost;
25