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
d45f0c11
Commit
d45f0c11
authored
Feb 22, 2016
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs codership/mysql-wsrep#198: Revert test changes from previous commit
Restore tests for FLUSH commands supported by MariaDB.
parent
ea0b1837
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
0 deletions
+66
-0
mysql-test/suite/galera/r/galera_flush.result
mysql-test/suite/galera/r/galera_flush.result
+18
-0
mysql-test/suite/galera/t/galera_flush.test
mysql-test/suite/galera/t/galera_flush.test
+48
-0
No files found.
mysql-test/suite/galera/r/galera_flush.result
View file @
d45f0c11
...
...
@@ -42,6 +42,22 @@ wsrep_last_committed_diff
FLUSH RELAY LOGS;
wsrep_last_committed_diff
1
SET @userstat_old= @@userstat;
SET GLOBAL userstat=ON;
FLUSH CLIENT_STATISTICS;
FLUSH INDEX_STATISTICS;
FLUSH TABLE_STATISTICS;
FLUSH USER_STATISTICS;
wsrep_last_committed_diff
1
SET @old_thread_statistics= @@global.thread_statistics;
SET GLOBAL thread_statistics= ON;
FLUSH THREAD_STATISTICS;
wsrep_last_committed_diff
1
FLUSH CHANGED_PAGE_BITMAPS;
wsrep_last_committed_diff
1
CREATE TABLE t1 (f1 INTEGER);
FLUSH LOGS;
FLUSH TABLES WITH READ LOCK;
...
...
@@ -68,3 +84,5 @@ wsrep_last_committed_diff
1
DROP TABLE t1;
DROP TABLE t2;
SET GLOBAL userstat= @userstat_old;
SET GLOBAL thread_statistics= @old_thread_statistics;
mysql-test/suite/galera/t/galera_flush.test
View file @
d45f0c11
...
...
@@ -155,6 +155,50 @@ FLUSH RELAY LOGS;
--
eval
SELECT
$wsrep_last_committed_after
=
$wsrep_last_committed_before
+
1
AS
wsrep_last_committed_diff
;
--
enable_query_log
--
connection
node_1
SET
@
userstat_old
=
@@
userstat
;
SET
GLOBAL
userstat
=
ON
;
--
connection
node_2
--
let
$wsrep_last_committed_before
=
`SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
--
connection
node_1
FLUSH
CLIENT_STATISTICS
;
FLUSH
INDEX_STATISTICS
;
FLUSH
TABLE_STATISTICS
;
FLUSH
USER_STATISTICS
;
--
connection
node_2
--
let
$wsrep_last_committed_after
=
`SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
--
disable_query_log
--
eval
SELECT
$wsrep_last_committed_after
=
$wsrep_last_committed_before
+
4
AS
wsrep_last_committed_diff
;
--
enable_query_log
--
connection
node_1
SET
@
old_thread_statistics
=
@@
global
.
thread_statistics
;
SET
GLOBAL
thread_statistics
=
ON
;
--
connection
node_2
--
let
$wsrep_last_committed_before
=
`SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
--
connection
node_1
FLUSH
THREAD_STATISTICS
;
--
connection
node_2
--
let
$wsrep_last_committed_after
=
`SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
--
disable_query_log
--
eval
SELECT
$wsrep_last_committed_after
=
$wsrep_last_committed_before
+
1
AS
wsrep_last_committed_diff
;
--
enable_query_log
--
connection
node_2
--
let
$wsrep_last_committed_before
=
`SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
--
connection
node_1
FLUSH
CHANGED_PAGE_BITMAPS
;
--
connection
node_2
--
let
$wsrep_last_committed_after
=
`SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME = 'wsrep_last_committed'`
--
disable_query_log
--
eval
SELECT
$wsrep_last_committed_after
=
$wsrep_last_committed_before
+
1
AS
wsrep_last_committed_diff
;
--
enable_query_log
#
# The following statements should not be replicated: FLUSH LOGS, FLUSH TABLES WITH LOCKS
#
...
...
@@ -220,6 +264,10 @@ FLUSH TABLES t1;
--
eval
SELECT
$wsrep_last_committed_after
=
$wsrep_last_committed_before
+
1
AS
wsrep_last_committed_diff
;
--
enable_query_log
--
connection
node_1
DROP
TABLE
t1
;
DROP
TABLE
t2
;
SET
GLOBAL
userstat
=
@
userstat_old
;
SET
GLOBAL
thread_statistics
=
@
old_thread_statistics
;
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