~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/drop.test

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
 
83
83
# End of 4.1 tests
84
84
 
 
85
 
 
86
#
 
87
# Test for bug#21216 "Simultaneous DROP TABLE and SHOW OPEN TABLES causes
 
88
# server to crash". Crash (caused by failed assertion in 5.0 or by null
 
89
# pointer dereference in 5.1) happened when one ran SHOW OPEN TABLES
 
90
# while concurrently doing DROP TABLE (or RENAME TABLE, CREATE TABLE LIKE
 
91
# or any other command that takes name-lock) in other connection.
 
92
 
93
# Also includes test for similar bug#12212 "Crash that happens during
 
94
# removing of database name from cache" reappeared in 5.1 as bug#19403
 
95
# In its case crash happened when one concurrently executed DROP DATABASE
 
96
# and one of name-locking command.
 
97
 
98
--disable_warnings
 
99
drop database if exists mysqltest;
 
100
drop table if exists t1;
 
101
--enable_warnings
 
102
create table t1 (i int);
 
103
create database mysqltest;
 
104
connect (addconroot1, localhost, root,,);
 
105
--send drop table t1
 
106
connect (addconroot2, localhost, root,,);
 
107
# Server should not crash in any of the following statements
 
108
--disable_result_log
 
109
show open tables;
 
110
--enable_result_log
 
111
--send drop database mysqltest
 
112
connection default;
 
113
select 1;
 
114
connection addconroot1;
 
115
--reap
 
116
connection addconroot2;
 
117
--reap
 
118
disconnect addconroot1;
 
119
disconnect addconroot2;
 
120
connection default;
 
121
 
85
122
--echo End of 5.0 tests
86
123
 
87
124
#
92
129
create table mysql_test.`#sql-347f_7` (f1 int);
93
130
create table mysql_test.`#sql-347f_8` (f1 int);
94
131
drop table mysql_test.`#sql-347f_8`;
 
132
## TODO: Uncommenting this causes drop database to fail, but I don't know that
 
133
#  I care to fix it, since it's testing .frm implementation which is being 
 
134
#  replaced.
 
135
#copy_file $MYSQLTEST_VARDIR/master-data/mysql_test/t1.frm $MYSQLTEST_VARDIR/master-data/mysql_test/#sql-347f_6.frm;
95
136
drop database mysql_test;
96
137
 
97
138
#