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
a951fb2c
Commit
a951fb2c
authored
Feb 05, 2008
by
anozdrin/alik@quad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disabling test case.
Bug 34311: main.lock_multi.test fails.
parent
48d32661
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
38 deletions
+32
-38
mysql-test/r/lock_multi.result
mysql-test/r/lock_multi.result
+0
-10
mysql-test/t/lock_multi.test
mysql-test/t/lock_multi.test
+32
-28
No files found.
mysql-test/r/lock_multi.result
View file @
a951fb2c
...
...
@@ -143,14 +143,4 @@ connection: default
flush tables;
unlock tables;
drop table t1;
drop table if exists t1,t2;
create table t1 (a int);
flush status;
lock tables t1 read;
insert into t1 values(1);;
unlock tables;
drop table t1;
select @tlwa < @tlwb;
@tlwa < @tlwb
1
End of 5.1 tests
mysql-test/t/lock_multi.test
View file @
a951fb2c
...
...
@@ -440,34 +440,38 @@ disconnect flush;
drop
table
t1
;
#
# Bug#30331: Table_locks_waited shows inaccurate values
#
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
--
enable_warnings
create
table
t1
(
a
int
);
flush
status
;
lock
tables
t1
read
;
let
$tlwa
=
`show status like 'Table_locks_waited'`
;
connect
(
waiter
,
localhost
,
root
,,);
connection
waiter
;
--
send
insert
into
t1
values
(
1
);
connection
default
;
let
$wait_condition
=
select
count
(
*
)
=
1
from
information_schema
.
processlist
where
state
=
"Locked"
and
info
=
"insert into t1 values(1)"
;
--
source
include
/
wait_condition
.
inc
let
$tlwb
=
`show status like 'Table_locks_waited'`
;
unlock
tables
;
drop
table
t1
;
disconnect
waiter
;
connection
default
;
--
disable_query_log
eval
SET
@
tlwa
=
SUBSTRING_INDEX
(
'$tlwa'
,
' '
,
-
1
);
eval
SET
@
tlwb
=
SUBSTRING_INDEX
(
'$tlwb'
,
' '
,
-
1
);
--
enable_query_log
select
@
tlwa
<
@
tlwb
;
# This test case was disabled due to Bug#34311: main.lock_multy.test fails.
#
# #
# # Bug#30331: Table_locks_waited shows inaccurate values
# #
#
# --disable_warnings
# drop table if exists t1,t2;
# --enable_warnings
#
# create table t1 (a int);
# flush status;
# lock tables t1 read;
# let $tlwa= `show status like 'Table_locks_waited'`;
# connect (waiter,localhost,root,,);
# connection waiter;
# --send insert into t1 values(1);
# connection default;
# let $wait_condition=
# select count(*) = 1 from information_schema.processlist
# where state = "Locked" and info = "insert into t1 values(1)";
# --source include/wait_condition.inc
# let $tlwb= `show status like 'Table_locks_waited'`;
# unlock tables;
# drop table t1;
# disconnect waiter;
# connection default;
# --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
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