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
675bcf3b
Commit
675bcf3b
authored
Apr 14, 2016
by
Philip Stoev
Committed by
Nirbhay Choubey
Aug 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Galera MTR Tests: A test for MW-44 - Disable general log for applier threads
parent
f49500a8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
mysql-test/suite/galera/r/MW-44.result
mysql-test/suite/galera/r/MW-44.result
+14
-0
mysql-test/suite/galera/t/MW-44-master.opt
mysql-test/suite/galera/t/MW-44-master.opt
+1
-0
mysql-test/suite/galera/t/MW-44.test
mysql-test/suite/galera/t/MW-44.test
+24
-0
No files found.
mysql-test/suite/galera/r/MW-44.result
0 → 100644
View file @
675bcf3b
TRUNCATE TABLE mysql.general_log;
TRUNCATE TABLE mysql.general_log;
SET SESSION wsrep_osu_method=TOI;
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
SET SESSION wsrep_osu_method=RSU;
ALTER TABLE t1 ADD COLUMN f2 INTEGER;
SET SESSION wsrep_osu_method=TOI;
SELECT COUNT(*) = 2 FROM mysql.general_log WHERE argument LIKE 'CREATE%' OR argument LIKE 'ALTER%';
COUNT(*) = 2
1
SELECT COUNT(*) = 0 FROM mysql.general_log WHERE argument NOT LIKE 'SELECT%';
COUNT(*) = 0
1
DROP TABLE t1;
mysql-test/suite/galera/t/MW-44-master.opt
0 → 100644
View file @
675bcf3b
--log-output=TABLE
mysql-test/suite/galera/t/MW-44.test
0 → 100644
View file @
675bcf3b
#
# MW-44: DDL is logged in the general_log on the slave
#
--
source
include
/
galera_cluster
.
inc
--
connection
node_1
TRUNCATE
TABLE
mysql
.
general_log
;
--
connection
node_2
TRUNCATE
TABLE
mysql
.
general_log
;
--
connection
node_1
SET
SESSION
wsrep_osu_method
=
TOI
;
CREATE
TABLE
t1
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
SET
SESSION
wsrep_osu_method
=
RSU
;
ALTER
TABLE
t1
ADD
COLUMN
f2
INTEGER
;
SET
SESSION
wsrep_osu_method
=
TOI
;
SELECT
COUNT
(
*
)
=
2
FROM
mysql
.
general_log
WHERE
argument
LIKE
'CREATE%'
OR
argument
LIKE
'ALTER%'
;
--
connection
node_2
SELECT
COUNT
(
*
)
=
0
FROM
mysql
.
general_log
WHERE
argument
NOT
LIKE
'SELECT%'
;
DROP
TABLE
t1
;
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