264
278
--echo ** Update will create a table scan which creates a ULL where a=2;
265
279
--echo ** this will hang waiting on thread 1.
266
280
send update t1 set b=10+get_lock(concat("hello",a),10)*0 where a=2;
269
282
--echo ** connection thread1
271
286
--echo ** Insert new values to t1 from thread 1; this created an implicit
272
287
--echo ** commit since there are no on-going transactions.
273
288
insert into t1 values (1,1);
274
289
--echo ** Release the ULL (thread 2 updates will finish).
276
293
--echo ** ..but thread 1 will still see t1 as if nothing has happend: