Hakan Kuecuekyilmaz wrote:
> #At bzr+ssh://bk-internal.mysql.com/bzrroot/server/mysql-6.0-falcon/
>
> 2700 Hakan Kuecuekyilmaz 2008-06-14
> Fixed test case falcon_bug_26828.test. This fixes Bug#37078.
> modified:
> mysql-test/suite/falcon/r/falcon_bug_26828.result
> mysql-test/suite/falcon/t/falcon_bug_26828.test
This change has already been pushed to mysql-6.0-falcon, so this is a
post-push review.
I have verified that the patch fixes the test failure described in
Bug#37078 (falcon_bug_26828.test).
Without the patch the test failed 5% of the time on my Linux test host.
With the patch, the test did not fail at all when run 100 times in a row.
Current test code looks OK to me.
--
John
> per-file messages:
> mysql-test/suite/falcon/r/falcon_bug_26828.result
> Adjusted result file.
> mysql-test/suite/falcon/t/falcon_bug_26828.test
> Added SET GLOBAL falcon_consistent_read = off;
> === modified file 'mysql-test/suite/falcon/r/falcon_bug_26828.result'
> --- a/mysql-test/suite/falcon/r/falcon_bug_26828.result 2007-09-20 15:44:25 +0000
> +++ b/mysql-test/suite/falcon/r/falcon_bug_26828.result 2008-06-14 12:41:25 +0000
> @@ -1,6 +1,8 @@
> SET @@storage_engine = Falcon;
> *** Bug #26828 ***
> DROP SCHEMA IF EXISTS db1;
> +SELECT @@GLOBAL.falcon_consistent_read INTO @previous_falcon_consistent_read;
> +SET GLOBAL falcon_consistent_read = off;
> CREATE SCHEMA db1;
> USE db1;
> CREATE TABLE t1 (a int)
> @@ -27,6 +29,7 @@ CALL p1();
> # Switch to connection conn1
> CALL p1();
> # Switch to connection default
> +SET GLOBAL falcon_consistent_read = @previous_falcon_consistent_read;
> DROP TABLE t1;
> DROP SCHEMA db1;
> USE test;
>
> === modified file 'mysql-test/suite/falcon/t/falcon_bug_26828.test'
> --- a/mysql-test/suite/falcon/t/falcon_bug_26828.test 2007-12-19 18:55:35 +0000
> +++ b/mysql-test/suite/falcon/t/falcon_bug_26828.test 2008-06-14 12:41:25 +0000
> @@ -10,6 +10,9 @@ SET @@storage_engine = Falcon;
> DROP SCHEMA IF EXISTS db1;
> --enable_warnings
>
> +SELECT @@GLOBAL.falcon_consistent_read INTO @previous_falcon_consistent_read;
> +SET GLOBAL falcon_consistent_read = off;
> +
> CREATE SCHEMA db1;
> USE db1;
> CREATE TABLE t1 (a int)
> @@ -48,6 +51,7 @@ CALL p1();
> --echo # Switch to connection default
> connection default;
> disconnect conn1;
> +SET GLOBAL falcon_consistent_read = @previous_falcon_consistent_read;
> DROP TABLE t1;
> DROP SCHEMA db1;
> USE test;
>
>