| 1 |
# Bug#20205934 - ENABLE VALGRIND FOR MEMCACHED TESTS |
| 2 |
source include/not_valgrind.inc; |
| 3 |
source include/have_memcached_plugin.inc; |
| 4 |
# Memcached SDI APIs are enabled only for debug version |
| 5 |
source include/have_debug.inc; |
| 6 |
|
| 7 |
--disable_query_log |
| 8 |
CALL mtr.add_suppression("daemon-memcached-w-batch-size': unsigned"); |
| 9 |
CALL mtr.add_suppression("Could not obtain server's UPN to be used as target service name"); |
| 10 |
CALL mtr.add_suppression("Warning: MySQL is trying to drop"); |
| 11 |
# Create the memcached tables |
| 12 |
source include/memcache_config.inc; |
| 13 |
--enable_query_log |
| 14 |
|
| 15 |
INSERT INTO cache_policies VALUES('cache_policy', 'innodb_only', |
| 16 |
'innodb_only', 'innodb_only', 'innodb_only'); |
| 17 |
|
| 18 |
INSERT INTO config_options VALUES('separator', '|'); |
| 19 |
|
| 20 |
# describe table for memcache |
| 21 |
INSERT INTO containers VALUES ('desc_t1', 'test', 't1', |
| 22 |
'c1', 'c2', '0', '0', '0', 'PRIMARY'); |
| 23 |
|
| 24 |
USE test; |
| 25 |
let MEMCACHED_PORT=11289; |
| 26 |
|
| 27 |
SET GLOBAL innodb_file_per_table=OFF; |
| 28 |
SET DEBUG='+d, skip_sdi'; |
| 29 |
CREATE TABLE t1 (c1 VARCHAR(32), |
| 30 |
c2 VARCHAR(1024), |
| 31 |
primary key(c1)) |
| 32 |
ENGINE = INNODB; |
| 33 |
SET DEBUG='-d, skip_sdi'; |
| 34 |
|
| 35 |
# Tables must exist before plugin can be started! |
| 36 |
--let $memcached_address=127.0.0.1:11289 |
| 37 |
--source ../include/load_daemon_memcached_expecting_success.inc |
| 38 |
|
| 39 |
--let $MYSQLD_DATADIR=`SELECT @@datadir` |
| 40 |
|
| 41 |
# Clear the current SDI in table |
| 42 |
--let MEMCACHED_TABLE_MAPPING = desc_t1 |
| 43 |
--source ../include/sdi_drop_index.inc |
| 44 |
--source ../include/sdi_create_index.inc |
| 45 |
|
| 46 |
# Insert into DD_INFO tables via memcached |
| 47 |
--source ../include/sdi_insert_delete.inc |
| 48 |
|
| 49 |
SET DEBUG='+d, skip_sdi'; |
| 50 |
DROP TABLE t1; |
| 51 |
SET DEBUG='-d, skip_sdi'; |
| 52 |
|
| 53 |
# Stop plugin before innodb_memcached configuration |
| 54 |
UNINSTALL PLUGIN daemon_memcached; |
| 55 |
DROP DATABASE innodb_memcache; |
| 56 |
|
| 57 |
SET @@global.innodb_file_per_table= default; |