~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include/concurrent.inc

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
connection thread1;
165
165
begin;
166
166
select release_lock("hello");
167
 
--error 1205
 
167
--error ER_LOCK_WAIT_TIMEOUT
168
168
update t1 set tipo=1+get_lock("hello",10)*0 where tipo=2;
169
169
select * from t1;
170
170
connection thread2;
207
207
connection thread1;
208
208
begin;
209
209
select release_lock("hello");
210
 
--error 1205
 
210
--error ER_LOCK_WAIT_TIMEOUT
211
211
update t1 set tipo=11+get_lock("hello",10)*0 where tipo=22;
212
212
select * from t1;
213
213
connection thread2;
250
250
connection thread1;
251
251
begin;
252
252
select release_lock("hello");
253
 
--error 1205
 
253
--error ER_LOCK_WAIT_TIMEOUT
254
254
select * from t1 where tipo=1 FOR UPDATE;
255
255
connection thread2;
256
256
reap;
293
293
connection thread1;
294
294
begin;
295
295
select release_lock("hello");
296
 
--error 1205
 
296
--error ER_LOCK_WAIT_TIMEOUT
297
297
update t1 set tipo=1+get_lock("hello",10)*0 where tipo=2;
298
298
select * from t1;
299
299
connection thread2;