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
50846bf7
Commit
50846bf7
authored
Aug 15, 2011
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MWL#234: Add MTR tests for SESSION/GLOBAL semantics of new system variables.
parent
b1a13cb1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
mysql-test/suite/rpl/r/rpl_skip_replication.result
mysql-test/suite/rpl/r/rpl_skip_replication.result
+22
-1
mysql-test/suite/rpl/t/rpl_skip_replication.test
mysql-test/suite/rpl/t/rpl_skip_replication.test
+10
-1
No files found.
mysql-test/suite/rpl/r/rpl_skip_replication.result
View file @
50846bf7
...
...
@@ -6,12 +6,33 @@ SELECT,UPDATE ON *.* TO 'nonsuperuser'@'127.0.0.1';
SET GLOBAL replicate_events_marked_for_skip=0;
ERROR 42000: Access denied; you need the SUPER privilege for this operation
DROP USER'nonsuperuser'@'127.0.0.1';
SELECT @@global.replicate_events_marked_for_skip;
@@global.replicate_events_marked_for_skip
1
SET GLOBAL replicate_events_marked_for_skip=0;
ERROR HY000: This operation cannot be performed with a running slave; run STOP SLAVE first
SELECT @@global.replicate_events_marked_for_skip;
@@global.replicate_events_marked_for_skip
1
STOP SLAVE;
SET SESSION replicate_events_marked_for_skip=0;
ERROR HY000: Variable 'replicate_events_marked_for_skip' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@global.replicate_events_marked_for_skip;
@@global.replicate_events_marked_for_skip
1
SET GLOBAL replicate_events_marked_for_skip=0;
SELECT @@global.replicate_events_marked_for_skip;
@@global.replicate_events_marked_for_skip
0
START SLAVE;
SET skip_replication=0;
SELECT @@skip_replication;
@@skip_replication
0
SET GLOBAL skip_replication=1;
ERROR HY000: Variable 'skip_replication' is a SESSION variable and can't be used with SET GLOBAL
SELECT @@skip_replication;
@@skip_replication
0
CREATE TABLE t1 (a INT PRIMARY KEY, b INT) ENGINE=myisam;
CREATE TABLE t2 (a INT PRIMARY KEY, b INT) ENGINE=innodb;
INSERT INTO t1(a) VALUES (1);
...
...
mysql-test/suite/rpl/t/rpl_skip_replication.test
View file @
50846bf7
...
...
@@ -14,14 +14,23 @@ disconnect nonpriv;
connection
slave
;
DROP
USER
'nonsuperuser'
@
'127.0.0.1'
;
SELECT
@@
global
.
replicate_events_marked_for_skip
;
--
error
ER_SLAVE_MUST_STOP
SET
GLOBAL
replicate_events_marked_for_skip
=
0
;
SELECT
@@
global
.
replicate_events_marked_for_skip
;
STOP
SLAVE
;
--
error
ER_GLOBAL_VARIABLE
SET
SESSION
replicate_events_marked_for_skip
=
0
;
SELECT
@@
global
.
replicate_events_marked_for_skip
;
SET
GLOBAL
replicate_events_marked_for_skip
=
0
;
SELECT
@@
global
.
replicate_events_marked_for_skip
;
START
SLAVE
;
connection
master
;
SET
skip_replication
=
0
;
SELECT
@@
skip_replication
;
--
error
ER_LOCAL_VARIABLE
SET
GLOBAL
skip_replication
=
1
;
SELECT
@@
skip_replication
;
CREATE
TABLE
t1
(
a
INT
PRIMARY
KEY
,
b
INT
)
ENGINE
=
myisam
;
CREATE
TABLE
t2
(
a
INT
PRIMARY
KEY
,
b
INT
)
ENGINE
=
innodb
;
...
...
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