~ubuntu-branches/ubuntu/raring/mysql-5.5/raring-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/innodb/t/innodb-lock.test

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-14 23:59:22 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120214235922-cux5uek1e5l0hje9
Tags: 5.5.20-0ubuntu1
* New upstream release.
* d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
  fully stopped before shutdown commences. (LP: #688541) Also simplify
  start on as it is redundant.
* d/control: Depend on upstart version which has apparmor profile load
  script to prevent failure on upgrade from lucid to precise.
  (LP: #907465)
* d/apparmor-profile: need to allow /run since that is the true path
  of /var/run files. (LP: #917542)
* d/control: mysql-server-5.5 has files in it that used to be owned
  by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
* d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
  change compiler back to system default.
* d/rules: Turn off embedded libedit/readline.(Closes: #659566)

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
drop table t1;
128
128
 
129
129
# End of 4.1 tests
 
130
 
 
131
--echo #
 
132
--echo #Bug#12842206 INNODB LOCKING REGRESSION FOR INSERT IGNORE
 
133
--echo #fixed by re-fixing Bug#7975
 
134
--echo #aka Bug#11759688 52020: InnoDB can still deadlock on just INSERT...
 
135
--echo #
 
136
 
 
137
connection default;
 
138
CREATE TABLE t1 (a INT PRIMARY KEY, b INT NOT NULL) ENGINE=InnoDB;
 
139
 
 
140
INSERT INTO t1 VALUES(3,1);
 
141
 
 
142
BEGIN;
 
143
# this used to wrongly acquire an X lock; now it takes an S lock
 
144
INSERT IGNORE INTO t1 VALUES(3,14);
 
145
 
 
146
connection con1;
 
147
BEGIN;
 
148
# this used to wrongly acquire an X lock; now it takes an S lock
 
149
INSERT IGNORE INTO t1 VALUES(3,23);
 
150
--send
 
151
SELECT * FROM t1 FOR UPDATE;
 
152
 
 
153
connection con2;
 
154
# Check that the above SELECT is blocked
 
155
let $wait_condition=
 
156
  select count(*) = 1 from information_schema.processlist
 
157
  where state = 'Sending data' and
 
158
        info = 'SELECT * FROM t1 FOR UPDATE';
 
159
--source include/wait_condition.inc
 
160
 
 
161
connection default;
 
162
COMMIT;
 
163
connection con1;
 
164
reap;
 
165
COMMIT;
 
166
disconnect con1;
 
167
disconnect con2;
 
168
 
 
169
connection default;
 
170
DROP TABLE t1;