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
9c6c3aca
Commit
9c6c3aca
authored
Jan 29, 2008
by
davi@mysql.com/endora.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test case of Bug 30331
parent
bfb3069f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
mysql-test/r/lock_multi.result
mysql-test/r/lock_multi.result
+4
-6
mysql-test/t/lock_multi.test
mysql-test/t/lock_multi.test
+8
-2
No files found.
mysql-test/r/lock_multi.result
View file @
9c6c3aca
...
@@ -147,12 +147,10 @@ drop table if exists t1,t2;
...
@@ -147,12 +147,10 @@ drop table if exists t1,t2;
create table t1 (a int);
create table t1 (a int);
flush status;
flush status;
lock tables t1 read;
lock tables t1 read;
show status like 'Table_locks_waited';
Variable_name Value
Table_locks_waited 0
insert into t1 values(1);;
insert into t1 values(1);;
unlock tables;
drop table t1;
drop table t1;
s
how status like 'Table_locks_waited'
;
s
elect @tlwa < @tlwb
;
Variable_name Value
@tlwa < @tlwb
Table_locks_waited
1
1
End of 5.1 tests
End of 5.1 tests
mysql-test/t/lock_multi.test
View file @
9c6c3aca
...
@@ -450,7 +450,7 @@ drop table if exists t1,t2;
...
@@ -450,7 +450,7 @@ drop table if exists t1,t2;
create
table
t1
(
a
int
);
create
table
t1
(
a
int
);
flush
status
;
flush
status
;
lock
tables
t1
read
;
lock
tables
t1
read
;
show
status
like
'Table_locks_waited'
;
let
$tlwa
=
`show status like 'Table_locks_waited'`
;
connect
(
waiter
,
localhost
,
root
,,);
connect
(
waiter
,
localhost
,
root
,,);
connection
waiter
;
connection
waiter
;
--
send
insert
into
t1
values
(
1
);
--
send
insert
into
t1
values
(
1
);
...
@@ -459,9 +459,15 @@ let $wait_condition=
...
@@ -459,9 +459,15 @@ let $wait_condition=
select
count
(
*
)
=
1
from
information_schema
.
processlist
select
count
(
*
)
=
1
from
information_schema
.
processlist
where
state
=
"Locked"
and
info
=
"insert into t1 values(1)"
;
where
state
=
"Locked"
and
info
=
"insert into t1 values(1)"
;
--
source
include
/
wait_condition
.
inc
--
source
include
/
wait_condition
.
inc
let
$tlwb
=
`show status like 'Table_locks_waited'`
;
unlock
tables
;
drop
table
t1
;
drop
table
t1
;
disconnect
waiter
;
disconnect
waiter
;
connection
default
;
connection
default
;
show
status
like
'Table_locks_waited'
;
--
disable_query_log
eval
SET
@
tlwa
=
SUBSTRING_INDEX
(
'$tlwa'
,
' '
,
-
1
);
eval
SET
@
tlwb
=
SUBSTRING_INDEX
(
'$tlwb'
,
' '
,
-
1
);
--
enable_query_log
select
@
tlwa
<
@
tlwb
;
--
echo
End
of
5.1
tests
--
echo
End
of
5.1
tests
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