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
fd3b7f5e
Commit
fd3b7f5e
authored
May 19, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: make the test more debuggable
parent
775cba4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
mysql-test/main/status.result
mysql-test/main/status.result
+7
-2
mysql-test/main/status.test
mysql-test/main/status.test
+5
-9
No files found.
mysql-test/main/status.result
View file @
fd3b7f5e
...
...
@@ -471,16 +471,21 @@ connection default;
# All results below should be 1
flush global status;
flush session status;
select $global_flush_status >= $local_flush_status as "1";
1
1
flush session status;
select $new_global_flush_status >= $global_flush_status as "1";
1
1
select $new_local_flush_status < $global_flush_status as "1";
1
1
flush global status;
select $new_local_flush_status >= $local_flush_status as "1";
1
1
select $new_global_flush_status < $new_local_flush_status as "1";
1
1
#
# end of 11.5 tests
#
mysql-test/main/status.test
View file @
fd3b7f5e
...
...
@@ -487,15 +487,14 @@ let $local_flush_status= `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_
--
sleep
2
--
disable_query_log
--
eval
select
$global_flush_status
>=
$local_flush_status
as
"1"
--
evalp
select
$global_flush_status
>=
$local_flush_status
as
"1"
flush
session
status
;
let
$new_global_flush_status
=
`SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME LIKE 'Uptime_since_flush_status'`
;
let
$new_local_flush_status
=
`SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'Uptime_since_flush_status'`
;
--
eval
select
$new_global_flush_status
>=
$global_flush_status
as
"1"
--
eval
select
$new_local_flush_status
<
$global_flush_status
as
"1"
--
eval
p
select
$new_global_flush_status
>=
$global_flush_status
as
"1"
--
eval
p
select
$new_local_flush_status
<
$global_flush_status
as
"1"
--
sleep
2
flush
global
status
;
...
...
@@ -504,10 +503,7 @@ let $local_flush_status=$new_local_flush_status;
let
$new_global_flush_status
=
`SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME LIKE 'Uptime_since_flush_status'`
;
let
$new_local_flush_status
=
`SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME LIKE 'Uptime_since_flush_status'`
;
--
eval
select
$new_local_flush_status
>=
$local_flush_status
as
"1"
--
eval
select
$new_global_flush_status
<
$new_local_flush_status
as
"1"
--
eval
p
select
$new_local_flush_status
>=
$local_flush_status
as
"1"
--
eval
p
select
$new_global_flush_status
<
$new_local_flush_status
as
"1"
--
enable_query_log
--
echo
#
--
echo
# end of 11.5 tests
--
echo
#
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