mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
f2338872bb
Fixed the dml_mutex_instances and dml_rwlock_instances to be more reliable. In particular, the tests may not assume a mutex or rwlock is never locked.
23 lines
1.2 KiB
Text
23 lines
1.2 KiB
Text
select * from performance_schema.MUTEX_INSTANCES limit 1;
|
|
NAME OBJECT_INSTANCE_BEGIN LOCKED_BY_THREAD_ID
|
|
# # #
|
|
select * from performance_schema.MUTEX_INSTANCES
|
|
where name='FOO';
|
|
NAME OBJECT_INSTANCE_BEGIN LOCKED_BY_THREAD_ID
|
|
insert into performance_schema.MUTEX_INSTANCES
|
|
set name='FOO', object_instance_begin=12;
|
|
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'MUTEX_INSTANCES'
|
|
update performance_schema.MUTEX_INSTANCES
|
|
set name='FOO';
|
|
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'MUTEX_INSTANCES'
|
|
delete from performance_schema.MUTEX_INSTANCES
|
|
where name like "wait/%";
|
|
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'MUTEX_INSTANCES'
|
|
delete from performance_schema.MUTEX_INSTANCES;
|
|
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'MUTEX_INSTANCES'
|
|
LOCK TABLES performance_schema.MUTEX_INSTANCES READ;
|
|
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'MUTEX_INSTANCES'
|
|
UNLOCK TABLES;
|
|
LOCK TABLES performance_schema.MUTEX_INSTANCES WRITE;
|
|
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'MUTEX_INSTANCES'
|
|
UNLOCK TABLES;
|