~ubuntu-branches/ubuntu/saucy/mysql-5.5/saucy-security

« back to all changes in this revision

Viewing changes to mysql-test/r/mdl_sync.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2013-10-22 15:14:10 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20131022151410-5xj09x9slxhqa0fx
Tags: 5.5.34-0ubuntu0.13.10.1
* SECURITY UPDATE: Update to 5.5.34 to fix security issues (LP: #1243253)
  - http://www.oracle.com/technetwork/topics/security/cpuoct2013-1899837.html
  - CVE-2013-3839
  - CVE-2013-5807

Show diffs side-by-side

added added

removed removed

Lines of Context:
1843
1843
# for 'deadlock_con1' which holds shared metadata lock on 't2'.
1844
1844
1845
1845
# The below statement should not wait as doing so will cause deadlock.
1846
 
# Instead it should fail and emit ER_LOCK_DEADLOCK statement.
 
1846
# Instead it should fail and emit ER_LOCK_DEADLOCK statement and 
 
1847
# transaction should be rolled back.
1847
1848
select * from t1;
1848
1849
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
1849
1850
#
1850
 
# Let us check that failure of the above statement has not released
1851
 
# metadata lock on table 't1', i.e. that RENAME TABLE is still blocked.
1852
 
# Commit transaction to unblock RENAME TABLE.
1853
 
commit;
1854
 
#
1855
1851
# Switching to connection 'default'.
1856
1852
# Reap RENAME TABLE.
1857
1853
#
1888
1884
# Switching to connection 'deadlock_con1'.
1889
1885
# Since the latest RENAME TABLE entered in deadlock with SELECT
1890
1886
# statement the latter should be aborted and emit ER_LOCK_DEADLOCK
1891
 
# error.
 
1887
# error and transaction should be rolled back.
1892
1888
# Reap SELECT * FROM t1.
1893
1889
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
1894
1890
#
1895
 
# Again let us check that failure of the SELECT statement has not
1896
 
# released metadata lock on table 't2', i.e. that the latest RENAME
1897
 
# is blocked.
1898
 
# Commit transaction to unblock this RENAME TABLE.
1899
 
commit;
1900
 
#
1901
1891
# Switching to connection 'deadlock_con2'.
1902
1892
# Reap RENAME TABLE ... .
1903
1893
#
1931
1921
# metadata lock on 't2' and starts waiting for connection
1932
1922
# 'deadlock_con1' which holds shared lock on 't1'.
1933
1923
# The below statement should not wait as it will cause deadlock.
1934
 
# An appropriate error should be reported instead.
 
1924
# An appropriate error should be reported instead and transaction
 
1925
# should be rolled back.
1935
1926
select * from t2;
1936
1927
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
1937
 
# Again let us check that failure of the above statement has not
1938
 
# released all metadata locks in connection 'deadlock_con1' and
1939
 
# so ALTER TABLE ... RENAME is still blocked.
1940
 
# Commit transaction to unblock ALTER TABLE ... RENAME.
1941
 
commit;
1942
1928
#
1943
1929
# Switching to connection 'default'.
1944
1930
# Reap ALTER TABLE ... RENAME.
2426
2412
update t1 set c3=c3+1 where c2 = 3;
2427
2413
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
2428
2414
#
2429
 
# Let us check that failure of the above statement has not released
2430
 
# metadata lock on table 't1', i.e. that ALTER TABLE is still blocked.
2431
 
# Unblock ALTER TABLE by commiting transaction and thus releasing
2432
 
# metadata lock on 't1'.
2433
 
commit;
2434
 
#
2435
2415
# Switching to connection 'con46273'.
2436
2416
# Reap ALTER TABLE.
2437
2417
#