summaryrefslogtreecommitdiff
path: root/mysql-test/t/ndb_autodiscover.test
diff options
context:
space:
mode:
authorunknown <magnus@shellback.(none)>2004-09-26 16:11:24 +0200
committerunknown <magnus@shellback.(none)>2004-09-26 16:11:24 +0200
commit5077ba47ad95f166b107dd4da29ae595516e85ab (patch)
tree1d3702820ede0b06dd2271c41fe8c3d78c8afe5c /mysql-test/t/ndb_autodiscover.test
parent0609dba34abe2513afeca29462b48ad930bdbdb8 (diff)
downloadmariadb-git-5077ba47ad95f166b107dd4da29ae595516e85ab.tar.gz
WL#1424 Updated after review
* Changed the implementation of ndbcluster_find_files to be more efficient, using only one mutex lock * Moved ha_find_files to end of mysql_find_files so that it can be passed the list that we are interested to find. mysql-test/t/ndb_autodiscover.test: Added a new test case, disabled for now, waiting for mysql-test-run to set a NDB_CONNECTSTRING sql/ha_ndbcluster.cc: Rewrite of ndbcluster_find_files to remove and delete files using only one mutex lock. This version only discover files that fulfill wildcard. sql/ha_ndbcluster.h: Add list of files as parameter sql/handler.cc: Add list of files as parameter sql/handler.h: Add list of files as parameter sql/sql_show.cc: Moving the ha_find_files to end of function, so that the file lista can be passsed to it. BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'mysql-test/t/ndb_autodiscover.test')
-rw-r--r--mysql-test/t/ndb_autodiscover.test34
1 files changed, 34 insertions, 0 deletions
diff --git a/mysql-test/t/ndb_autodiscover.test b/mysql-test/t/ndb_autodiscover.test
index 47a1155065b..50c94d7a6e4 100644
--- a/mysql-test/t/ndb_autodiscover.test
+++ b/mysql-test/t/ndb_autodiscover.test
@@ -215,9 +215,43 @@ drop table t6, t7;
#show status like 'handler_discover%';
#drop table t4;
#
+#
+# system exec $NDB_TOOLS_DIR/ndb_drop_table -d test t4 > /dev/null ;
+#
+#
+#
#show tables;
+#######################################################
+# Test that a table that has been dropped from NDB
+# but still exists on disk is deleted from disk
+# when SHOW TABLES is called
+#
+#
+#flush status;
+#
+#create table t4(
+# id int not null primary key,
+# id2 int,
+# name char(27)
+#) engine=ndb;
+#insert into t4 values (1, 76, "Automatic2");
+#select * from t4;
+#flush tables;
+#
+# Remove the table from NDB
+#system exec ../ndb/tools/ndb_drop_table -c localhost:9350 -d test t4 > /dev/null ;
+
+#system exec ../ndb/tools/ndb_show_tables > var/log/ndb_show_tables.log;
+
+#SHOW TABLES;
+
+# Is there another way to find out that the file is gone?
+#--error 1146
+#select * from t4;
+
+
#########################################################
# Test that a table that has been changed in NDB