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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d231dc8f
Commit
d231dc8f
authored
May 03, 2012
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix (hopefully) a race condition in a test. Wait until killed connection
is gone.
parent
d5558780
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mysql-test/t/aborted_clients.test
mysql-test/t/aborted_clients.test
+4
-2
No files found.
mysql-test/t/aborted_clients.test
View file @
d231dc8f
...
...
@@ -3,12 +3,14 @@
# status variable, but KILL connection does
--
source
include
/
not_embedded
.
inc
--
source
include
/
count_sessions
.
inc
FLUSH
STATUS
;
# Connect/Disconnect look that aborted_clients stays 0
connect
(
con1
,
localhost
,
root
,,);
disconnect
con1
;
connection
default
;
--
source
include
/
wait_until_count_sessions
.
inc
# Check that there is 0 aborted clients so far
SELECT
VARIABLE_VALUE
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'aborted_clients'
;
...
...
@@ -19,8 +21,8 @@ connect(con2,localhost,root,,);
KILL
CONNECTION_ID
();
disconnect
con2
;
connection
default
;
--
source
include
/
wait_until_count_sessions
.
inc
# aborted clients must be 1 now
SELECT
VARIABLE_VALUE
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'aborted_clients'
;
FLUSH
STATUS
;
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