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
5ef41db4
Commit
5ef41db4
authored
Oct 31, 2008
by
Kristofer Pettersson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed race condition in test case status2. A 'disconnect' issues an
implicit command which isn't completed immediately.
parent
f3a4a186
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
mysql-test/r/status2.result
mysql-test/r/status2.result
+4
-4
mysql-test/t/status2.test
mysql-test/t/status2.test
+2
-2
No files found.
mysql-test/r/status2.result
View file @
5ef41db4
...
@@ -53,11 +53,11 @@ Assert Questions == 16
...
@@ -53,11 +53,11 @@ Assert Questions == 16
SHOW STATUS LIKE 'Questions';
SHOW STATUS LIKE 'Questions';
Variable_name Value
Variable_name Value
Questions 16
Questions 16
Global status updated; Assert diff ==
5
Global status updated; Assert diff ==
4
FLUSH STATUS;
FLUSH STATUS;
SELECT
5
;
SELECT
4
;
5
4
5
4
DROP TABLE t1,t2;
DROP TABLE t1,t2;
DROP PROCEDURE p1;
DROP PROCEDURE p1;
DROP FUNCTION f1;
DROP FUNCTION f1;
...
...
mysql-test/t/status2.test
View file @
5ef41db4
...
@@ -47,16 +47,16 @@ FLUSH STATUS;
...
@@ -47,16 +47,16 @@ FLUSH STATUS;
let
$org_questions
=
`SHOW GLOBAL STATUS LIKE 'questions'`
;
let
$org_questions
=
`SHOW GLOBAL STATUS LIKE 'questions'`
;
SELECT
1
;
SELECT
1
;
connection
default
;
connection
default
;
disconnect
con1
;
--
echo
Assert
Questions
==
16
--
echo
Assert
Questions
==
16
SHOW
STATUS
LIKE
'Questions'
;
SHOW
STATUS
LIKE
'Questions'
;
--
echo
Global
status
updated
;
Assert
diff
==
5
--
echo
Global
status
updated
;
Assert
diff
==
4
FLUSH
STATUS
;
FLUSH
STATUS
;
let
$new_questions
=
`SHOW GLOBAL STATUS LIKE 'questions'`
;
let
$new_questions
=
`SHOW GLOBAL STATUS LIKE 'questions'`
;
--
disable_log
--
disable_log
let
$diff
=
`SELECT SUBSTRING('$new_questions',10)-SUBSTRING('$org_questions',10)`
;
let
$diff
=
`SELECT SUBSTRING('$new_questions',10)-SUBSTRING('$org_questions',10)`
;
--
enable_log
--
enable_log
eval
SELECT
$diff
;
eval
SELECT
$diff
;
disconnect
con1
;
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
DROP
PROCEDURE
p1
;
DROP
PROCEDURE
p1
;
DROP
FUNCTION
f1
;
DROP
FUNCTION
f1
;
...
...
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