summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorunknown <msvensson@shellback.(none)>2006-02-28 13:04:48 +0100
committerunknown <msvensson@shellback.(none)>2006-02-28 13:04:48 +0100
commitbab96216a88f087c662967df993b67898801774d (patch)
tree9d7f54cacd1e2e6f8b628c60062daa50dc548abd /mysql-test/t
parent82960f19f20708f26805dbb414bdc2b0faa5cc6c (diff)
parentd015b03aef1cf5c8a08659fe795ab0fef0407fa0 (diff)
downloadmariadb-git-bab96216a88f087c662967df993b67898801774d.tar.gz
Merge neptunus://home/msvensson/mysql/bug16795/my51-bug16795
into shellback.(none):/home/msvensson/mysql/mysql-5.1 sql/ha_ndbcluster.cc: Auto merged
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/ndb_cache_multi2.test14
1 files changed, 8 insertions, 6 deletions
diff --git a/mysql-test/t/ndb_cache_multi2.test b/mysql-test/t/ndb_cache_multi2.test
index 5a78380097e..4abb537624a 100644
--- a/mysql-test/t/ndb_cache_multi2.test
+++ b/mysql-test/t/ndb_cache_multi2.test
@@ -10,6 +10,7 @@ drop table if exists t1, t2;
# Turn on and reset query cache on server1
connection server1;
+echo == Connected to server1 ==;
set GLOBAL query_cache_type=on;
set GLOBAL query_cache_size=1355776;
set GLOBAL ndb_cache_check_time=1;
@@ -18,6 +19,7 @@ flush status;
# Turn on and reset query cache on server2
connection server2;
+echo == Connected to server2 ==;
set GLOBAL query_cache_type=on;
set GLOBAL query_cache_size=1355776;
set GLOBAL ndb_cache_check_time=1;
@@ -27,11 +29,14 @@ flush status;
# Create test tables in NDB and load them into cache
# on server1
connection server1;
+echo == Connected to server1 ==;
create table t1 (a int) engine=ndbcluster;
create table t2 (a int) engine=ndbcluster;
insert into t1 value (2);
insert into t2 value (3);
select * from t1;
+# Run the check query once to load it into qc on server1
+select a != 3 from t1;
select * from t2;
show status like "Qcache_queries_in_cache";
show status like "Qcache_inserts";
@@ -40,6 +45,7 @@ show status like "Qcache_hits";
# Connect server2, load table in to cache, then update the table
connection server2;
+echo == Connected to server2 ==;
show status like "Qcache_queries_in_cache";
show status like "Qcache_inserts";
show status like "Qcache_hits";
@@ -49,12 +55,10 @@ show status like "Qcache_inserts";
show status like "Qcache_hits";
update t1 set a=3 where a=2;
-# Connect to server1 and check that cache is invalidated
+# Connect to server1 and check that cache is invalidated
# and correct data is returned
connection server1;
-show status like "Qcache_queries_in_cache";
-show status like "Qcache_inserts";
-show status like "Qcache_hits";
+echo == Connected to server1 ==;
# Loop and wait for max 10 seconds until query cache thread
# has invalidated the cache and the column a in t1 is equal to 3
@@ -75,8 +79,6 @@ select * from t1;
# There should now be three queries in the cache
show status like "Qcache_queries_in_cache";
-# And inserts should be four
-show status like "Qcache_inserts";
drop table t1, t2;