mirror of
https://github.com/MariaDB/server.git
synced 2025-10-13 19:29:15 +02:00

Follow-up patch with adjustments of test files and updates of result files for tests. Some of tests were rewritten slighlty. Everywhere where common pattern used: ----- CREATE USER userA; --connect con1 ... userA ... <sql statements...> --disconnect con1 DROP USER userA; ----- the DROP USER statement has been eclosed into the directive --disable_warnings --enable_warnings This change is caused by the race conddition between --disconnect and DROP USER since a number of currently running sessions established on behalf the user being dropped is counted by holding the rw_lock THD_list_iterator::lock that is not acquired on execution the DROP USER statement but the lock is taken as the last step on handling disconnection (when the client is already sending the next statement). Therefore, for the cases where the command --disconnect precedes the DROP USER statement we hide the possible warnings about presence of active sessions for the user being deleted to make tests deterministic.
29 lines
898 B
Text
29 lines
898 B
Text
--source include/not_embedded.inc
|
|
--source include/have_perfschema.inc
|
|
#
|
|
# MDEV-22884 Assertion `grant_table || grant_table_role' failed on perfschema
|
|
#
|
|
create user a@localhost;
|
|
connect a,localhost,a;
|
|
select * from performance_schema.global_status where variable_name='b';
|
|
connection default;
|
|
disconnect a;
|
|
--disable_warnings
|
|
drop user a@localhost;
|
|
--enable_warnings
|
|
|
|
--echo #
|
|
--echo # MDEV-35384 Table performance_schema.session_status and other two tables are not shown in information_schema.tables for normal users
|
|
--echo #
|
|
create user foo@localhost;
|
|
connect foo,localhost,foo;
|
|
sorted_result;
|
|
select table_schema,engine from information_schema.tables where table_name='session_status';
|
|
select count(*) > 0 as 'table is readable' from performance_schema.session_status;
|
|
connection default;
|
|
disconnect foo;
|
|
--disable_warnings
|
|
drop user foo@localhost;
|
|
--enable_warnings
|
|
|
|
--echo # End of 10.6 tests
|