Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9f00125a
Commit
9f00125a
authored
Jul 13, 2001
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case for low priority updates race bug
not yet fixed
parent
2d1a6434
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
mysql-test/r/lock.result
mysql-test/r/lock.result
+2
-0
mysql-test/t/lock.test
mysql-test/t/lock.test
+22
-0
No files found.
mysql-test/r/lock.result
View file @
9f00125a
...
...
@@ -4,3 +4,5 @@ Table Op Msg_type Msg_text
test.t1 check status OK
Table Op Msg_type Msg_text
test.t2 check error Table 't2' was not locked with LOCK TABLES
n
1
mysql-test/t/lock.test
View file @
9f00125a
...
...
@@ -53,3 +53,25 @@ lock tables t1 write;
check
table
t2
;
unlock
tables
;
drop
table
t1
,
t2
;
#test to see if select will get the lock ahead of low priority update
connect
(
locker
,
localhost
,
root
,,);
connect
(
reader
,
localhost
,
root
,,);
connect
(
writer
,
localhost
,
root
,,);
connection
locker
;
create
table
t1
(
n
int
);
insert
into
t1
values
(
1
);
lock
tables
t1
write
;
connection
writer
;
send
update
low_priority
t1
set
n
=
4
;
connection
reader
;
send
select
n
from
t1
;
connection
locker
;
unlock
tables
;
connection
writer
;
reap
;
connection
reader
;
reap
;
drop
table
t1
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment