mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
5a7374d71b
- Don't log connection creation in galera_connect.inc
62 lines
1.8 KiB
Text
62 lines
1.8 KiB
Text
CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES (1);
|
|
connection node_2;
|
|
RESET QUERY CACHE;
|
|
FLUSH STATUS;
|
|
SELECT COUNT(*) FROM t1;
|
|
COUNT(*)
|
|
1
|
|
SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'Qcache_queries_in_cache';
|
|
VARIABLE_VALUE = 1
|
|
1
|
|
SELECT COUNT(*) FROM t1;
|
|
COUNT(*)
|
|
1
|
|
SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'Qcache_hits';
|
|
VARIABLE_VALUE = 1
|
|
1
|
|
connection node_1;
|
|
INSERT INTO t1 VALUES (2);
|
|
connection node_2;
|
|
FLUSH STATUS;
|
|
SELECT VARIABLE_VALUE = 0 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'Qcache_queries_in_cache';
|
|
VARIABLE_VALUE = 0
|
|
1
|
|
SELECT COUNT(*) FROM t1;
|
|
COUNT(*)
|
|
2
|
|
SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'Qcache_queries_in_cache';
|
|
VARIABLE_VALUE = 1
|
|
1
|
|
SELECT VARIABLE_VALUE = 0 FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'Qcache_hits';
|
|
VARIABLE_VALUE = 0
|
|
1
|
|
SELECT COUNT(*) FROM t1;
|
|
COUNT(*)
|
|
2
|
|
SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'Qcache_hits';
|
|
VARIABLE_VALUE = 1
|
|
1
|
|
connection node_1;
|
|
ALTER TABLE t1 ADD COLUMN f2 INTEGER;
|
|
connection node_2;
|
|
FLUSH STATUS;
|
|
SELECT VARIABLE_VALUE = 0 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'Qcache_queries_in_cache';
|
|
VARIABLE_VALUE = 0
|
|
1
|
|
SELECT COUNT(*) FROM t1;
|
|
COUNT(*)
|
|
2
|
|
SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'Qcache_queries_in_cache';
|
|
VARIABLE_VALUE = 1
|
|
1
|
|
SELECT VARIABLE_VALUE = 0 FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'Qcache_hits';
|
|
VARIABLE_VALUE = 0
|
|
1
|
|
SELECT COUNT(*) FROM t1;
|
|
COUNT(*)
|
|
2
|
|
SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'Qcache_hits';
|
|
VARIABLE_VALUE = 1
|
|
1
|
|
DROP TABLE t1;
|