| 1 |
source include/not_valgrind.inc; |
| 2 |
source include/have_memcached_plugin.inc; |
| 3 |
source include/not_windows.inc; |
| 4 |
|
| 5 |
--disable_query_log |
| 6 |
CALL mtr.add_suppression("daemon-memcached-w-batch-size': unsigned"); |
| 7 |
CALL mtr.add_suppression("Could not obtain server's UPN to be used as target service name"); |
| 8 |
CALL mtr.add_suppression("Warning: MySQL is trying to drop"); |
| 9 |
--enable_query_log |
| 10 |
|
| 11 |
--enable_connect_log |
| 12 |
SET @transaction_isolation= @@global.transaction_isolation; |
| 13 |
SET GLOBAL TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; |
| 14 |
|
| 15 |
# Create the memcached tables |
| 16 |
--disable_query_log |
| 17 |
source include/memcache_config.inc; |
| 18 |
--enable_query_log |
| 19 |
|
| 20 |
INSERT INTO cache_policies VALUES("cache_policy", "innodb_only", |
| 21 |
"innodb_only", "innodb_only", "innodb_only"); |
| 22 |
|
| 23 |
INSERT INTO config_options VALUES("separator", "|"); |
| 24 |
INSERT INTO config_options VALUES("table_map_delimiter", "."); |
| 25 |
|
| 26 |
# describe table for memcache |
| 27 |
INSERT INTO containers VALUES ("desct1", "test", "t1", |
| 28 |
"c1", "c2,c21", "c3", "c4", "c5", "PRIMARY"); |
| 29 |
|
| 30 |
USE test; |
| 31 |
|
| 32 |
--disable_warnings |
| 33 |
DROP TABLE IF EXISTS t1; |
| 34 |
--enable_warnings |
| 35 |
CREATE TABLE t1 (c1 VARCHAR(32), |
| 36 |
c2 VARCHAR(1024), |
| 37 |
c21 VARCHAR(1024), |
| 38 |
c3 INT, c4 BIGINT UNSIGNED, c5 INT, primary key(c1)) |
| 39 |
ENGINE = INNODB; |
| 40 |
|
| 41 |
INSERT INTO t1 VALUES ('D', 'Darmstadt', 'City', 0, 0, 0); |
| 42 |
INSERT INTO t1 VALUES ('B', 'Berlin', 'Mitte', 0, 0, 0); |
| 43 |
INSERT INTO t1 VALUES ('C', 'Cottbus', 'West', 0, 0 ,0); |
| 44 |
INSERT INTO t1 VALUES ('H', 'Hamburg', 'Norderstedt', 0, 0, 0); |
| 45 |
|
| 46 |
# Tables must exist before plugin can be started! |
| 47 |
|
| 48 |
--echo Testing install/uninstall 10 times. |
| 49 |
LET $counter = 0; |
| 50 |
|
| 51 |
--disable_query_log |
| 52 |
WHILE ($counter<10) { |
| 53 |
|
| 54 |
--let $memcached_address=127.0.0.1:11280 |
| 55 |
--source ../include/load_daemon_memcached_expecting_success.inc |
| 56 |
UNINSTALL PLUGIN daemon_memcached; |
| 57 |
|
| 58 |
--INC $counter |
| 59 |
} |
| 60 |
--enable_query_log |
| 61 |
|
| 62 |
# Cleanup. |
| 63 |
|
| 64 |
DROP TABLE t1; |
| 65 |
|
| 66 |
DROP DATABASE innodb_memcache; |
| 67 |
|
| 68 |
SET @@global.transaction_isolation= @transaction_isolation; |