1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Added timeouts to make lock test repeatable

This commit is contained in:
monty@hundin.mysql.fi
2001-07-17 22:59:14 +03:00
parent b051b3ab8d
commit e3e51204ec
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,6 @@ test.t1 check status OK
Table Op Msg_type Msg_text Table Op Msg_type Msg_text
test.t2 check error Table 't2' was not locked with LOCK TABLES test.t2 check error Table 't2' was not locked with LOCK TABLES
n n
1 4
n n
1 1

View File

@ -66,8 +66,10 @@ lock tables t1 write;
connection writer; connection writer;
send update low_priority t1 set n = 4; send update low_priority t1 set n = 4;
connection reader; connection reader;
--sleep 2
send select n from t1; send select n from t1;
connection locker; connection locker;
--sleep 2
unlock tables; unlock tables;
connection writer; connection writer;
reap; reap;
@ -82,8 +84,10 @@ lock tables t1 read;
connection writer; connection writer;
send update low_priority t1 set n = 4; send update low_priority t1 set n = 4;
connection reader; connection reader;
--sleep 2
send select n from t1; send select n from t1;
connection locker; connection locker;
--sleep 2
unlock tables; unlock tables;
connection writer; connection writer;
reap; reap;