--source include/not_embedded.inc
--source include/have_perfschema.inc

#
# Only global
#

select @@global.performance_schema_setup_actors_size;

--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.performance_schema_setup_actors_size;

show global variables like 'performance_schema_setup_actors_size';

show session variables like 'performance_schema_setup_actors_size';

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

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

#
# Read-only
#

--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global performance_schema_setup_actors_size=1;

--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session performance_schema_setup_actors_size=1;

