3004 Sergey Vojtovich 2009-02-05
Test case fixes. It should pass, when BUG#34182 is fixed.
modified:
mysql-test/suite/falcon_team/r/falcon_deadlock.result
mysql-test/suite/falcon_team/t/falcon_deadlock.test
3003 Olav Sandstaa 2009-02-05
Remove debug code that was used for testing the new transaction dependency manager
implementation.
modified:
storage/falcon/TransactionManager.cpp
=== modified file 'mysql-test/suite/falcon_team/r/falcon_deadlock.result'
--- a/mysql-test/suite/falcon_team/r/falcon_deadlock.result 2008-12-18 10:49:29 +0000
+++ b/mysql-test/suite/falcon_team/r/falcon_deadlock.result 2009-02-05 13:23:27 +0000
@@ -26,6 +26,7 @@ id x
0 1
COMMIT;
# Switch to connection conn2
+ERROR HY000: Record has changed since last read in table 't1'
ROLLBACK;
# Switch to connection conn1
SELECT * FROM t1;
@@ -50,10 +51,10 @@ a b
0 10
1 20
2 30
-UPDATE t2 SET a = 100 WHERE b = (SELECT x FROM t1 WHERE id = b FOR UPDATE);
+UPDATE t2 SET b = 100 WHERE a = (SELECT x FROM t1 WHERE id = a FOR UPDATE);
SELECT * FROM t2;
a b
-0 10
+0 100
1 20
2 30
SELECT * FROM t1;
@@ -70,11 +71,12 @@ id x
300 300
COMMIT;
# Switch to connection conn2
+ERROR HY000: Record has changed since last read in table 't1'
COMMIT;
# Switch to connection conn1
SELECT * FROM t1;
id x
-0 2
+0 1
300 300
COMMIT;
DROP TABLE t1;
@@ -121,11 +123,12 @@ id x
300 300
COMMIT;
# Switch to connection conn2
+ERROR HY000: Record has changed since last read in table 't1'
COMMIT;
# Switch to connection conn1
SELECT * FROM t1;
id x
-0 2
+0 1
300 300
COMMIT;
SELECT count(*) FROM t1;
=== modified file 'mysql-test/suite/falcon_team/t/falcon_deadlock.test'
--- a/mysql-test/suite/falcon_team/t/falcon_deadlock.test 2008-12-18 10:49:29 +0000
+++ b/mysql-test/suite/falcon_team/t/falcon_deadlock.test 2009-02-05 13:23:27 +0000
@@ -98,7 +98,7 @@ INSERT INTO t2 VALUES (0, 10), (1, 20),
COMMIT;
SELECT * FROM t2;
-UPDATE t2 SET a = 100 WHERE b = (SELECT x FROM t1 WHERE id = b FOR UPDATE);
+UPDATE t2 SET b = 100 WHERE a = (SELECT x FROM t1 WHERE id = a FOR UPDATE);
SELECT * FROM t2;
SELECT * FROM t1;
@@ -117,6 +117,14 @@ COMMIT;
--echo # Switch to connection conn2
connection conn2;
+# If we set Falcon to
+# falcon_consistent_read = off
+#
+# we should get a
+# Record has changed since last read in table 't1'
+# here. Please note that falcon_consistent_read = off
+# is the default setting.
+--error ER_CHECKREAD
--reap
COMMIT;
@@ -166,6 +174,14 @@ COMMIT;
--echo # Switch to connection conn2
connection conn2;
+# If we set Falcon to
+# falcon_consistent_read = off
+#
+# we should get a
+# Record has changed since last read in table 't1'
+# here. Please note that falcon_consistent_read = off
+# is the default setting.
+--error ER_CHECKREAD
--reap
COMMIT;
| Thread |
|---|
| • bzr push into mysql-6.0-falcon-team branch (svoj:3003 to 3004)Bug#34182 | Sergey Vojtovich | 5 Feb |