diff options
author | unknown <msvensson@pilot.mysql.com> | 2006-12-22 13:57:33 +0100 |
---|---|---|
committer | unknown <msvensson@pilot.mysql.com> | 2006-12-22 13:57:33 +0100 |
commit | 7d4a5869e945c11e7c9c004e490155308a4a6145 (patch) | |
tree | 881af9bf22a4a14432e42014d5395c12e3906284 /mysql-test | |
parent | 0fb90c7f63ff7e5ff7f39bc622c51aecab620bd1 (diff) | |
download | mariadb-git-7d4a5869e945c11e7c9c004e490155308a4a6145.tar.gz |
Add the missing file
mysql-test/include/ndb_not_readonly.inc:
New BitKeeper file ``mysql-test/include/ndb_not_readonly.inc''
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/include/ndb_not_readonly.inc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mysql-test/include/ndb_not_readonly.inc b/mysql-test/include/ndb_not_readonly.inc new file mode 100644 index 00000000000..df67dced8ab --- /dev/null +++ b/mysql-test/include/ndb_not_readonly.inc @@ -0,0 +1,31 @@ +# Check that server has come out ot readonly mode +--disable_query_log +let $counter= 100; +let $mysql_errno= 1; +while ($mysql_errno) +{ + --error 0, 1005 + create table check_read_only(a int) engine=NDB; + sleep 0.1; + if (!$counter) + { + die("Failed while waiting for mysqld to come out of readonly mode"); + } + dec $counter; +} + +let $counter= 100; +let $mysql_errno= 1; +while ($mysql_errno) +{ + --error 0, 1036 + insert into check_read_only values(1); + sleep 0.1; + if (!$counter) + { + die("Failed while waiting for mysqld to come out of readonly mode"); + } + dec $counter; +} +drop table check_read_only; +--enable_query_log |