2
# perform a query on the memcached I_S statistics tables before the
3
# memcached related system variable has been set. Both of these queries
6
--exec sh $TOP_BUILDDIR/plugin/memcached_functions/start_mc.sh stop
7
--exec sh $TOP_BUILDDIR/plugin/memcached_functions/start_mc.sh start
10
create schema if not exists data_dictionary;
14
select * from data_dictionary.memcached_stats;
17
# Look at the current value of the memcached related system variable
19
select variable_name, variable_value
20
from data_dictionary.global_variables
21
where variable_name = 'memcached_stats_servers';
24
# Now try setting it to a certain value
26
--replace_result $MC_PORT MC_A_PORT
27
--eval set global memcached_stats_servers = 'localhost:$MC_PORT';
30
# make sure the system variable has been updated
33
select variable_name, variable_value
34
from data_dictionary.global_variables
35
where variable_name = 'memcached_stats_servers';
37
--replace_column 2 # 3 # 4 # 5 # 6 # 7 # 8 # 9 # 13 # 14 # 15 # 21 # 22 # 23 # 24 # 25 #
39
from data_dictionary.memcached_stats;
42
# Once the ability to created an embedded server has been added to
43
# memcached, we will actually start up an embedded server and perform some
44
# queries on it here...
46
--exec sh $TOP_BUILDDIR/plugin/memcached_functions/start_mc.sh stop