summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/pfs_max_file_instances_basic.test
blob: 880db840142595e414f311fedcc34d2d12d0460a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--source include/not_embedded.inc
--source include/have_perfschema.inc

#
# Only global
#

select @@global.performance_schema_max_file_instances;

--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.performance_schema_max_file_instances;

show global variables like 'performance_schema_max_file_instances';

show session variables like 'performance_schema_max_file_instances';

select * from information_schema.global_variables
  where variable_name='performance_schema_max_file_instances';

select * from information_schema.session_variables
  where variable_name='performance_schema_max_file_instances';

#
# Read-only
#

--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global performance_schema_max_file_instances=1;

--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session performance_schema_max_file_instances=1;