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
c6a890a7
Commit
c6a890a7
authored
Jan 04, 2022
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-19353 : Alter Sequence do not replicate to another nodes with in Galera Cluster
Galera replication of new DDL-case was missing
parent
2ead5bd9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
0 deletions
+58
-0
mysql-test/suite/galera/r/galera_sequences.result
mysql-test/suite/galera/r/galera_sequences.result
+27
-0
mysql-test/suite/galera/t/galera_sequences.test
mysql-test/suite/galera/t/galera_sequences.test
+24
-0
sql/sql_sequence.cc
sql/sql_sequence.cc
+7
-0
No files found.
mysql-test/suite/galera/r/galera_sequences.result
0 → 100644
View file @
c6a890a7
connection node_2;
connection node_1;
connection node_1;
CREATE SEQUENCE `seq` start with 1 minvalue 1 maxvalue 1000000 increment by 0 cache 1000 nocycle ENGINE=InnoDB;
SHOW CREATE SEQUENCE seq;
Table Create Table
seq CREATE SEQUENCE `seq` start with 1 minvalue 1 maxvalue 1000000 increment by 0 cache 1000 nocycle ENGINE=InnoDB
connection node_2;
SHOW CREATE SEQUENCE seq;
Table Create Table
seq CREATE SEQUENCE `seq` start with 1 minvalue 1 maxvalue 1000000 increment by 0 cache 1000 nocycle ENGINE=InnoDB
connection node_1;
ALTER SEQUENCE seq MAXVALUE = 10000;
SHOW CREATE SEQUENCE seq;
Table Create Table
seq CREATE SEQUENCE `seq` start with 1 minvalue 1 maxvalue 10000 increment by 0 cache 1000 nocycle ENGINE=InnoDB
connection node_2;
SHOW CREATE SEQUENCE seq;
Table Create Table
seq CREATE SEQUENCE `seq` start with 1 minvalue 1 maxvalue 10000 increment by 0 cache 1000 nocycle ENGINE=InnoDB
connection node_1;
DROP SEQUENCE seq;
SHOW CREATE SEQUENCE seq;
ERROR 42S02: Table 'test.seq' doesn't exist
connection node_2;
SHOW CREATE SEQUENCE seq;
ERROR 42S02: Table 'test.seq' doesn't exist
mysql-test/suite/galera/t/galera_sequences.test
0 → 100644
View file @
c6a890a7
--
source
include
/
galera_cluster
.
inc
--
connection
node_1
CREATE
SEQUENCE
`seq`
start
with
1
minvalue
1
maxvalue
1000000
increment
by
0
cache
1000
nocycle
ENGINE
=
InnoDB
;
SHOW
CREATE
SEQUENCE
seq
;
--
connection
node_2
SHOW
CREATE
SEQUENCE
seq
;
--
connection
node_1
ALTER
SEQUENCE
seq
MAXVALUE
=
10000
;
SHOW
CREATE
SEQUENCE
seq
;
--
connection
node_2
SHOW
CREATE
SEQUENCE
seq
;
--
connection
node_1
DROP
SEQUENCE
seq
;
--
error
ER_NO_SUCH_TABLE
SHOW
CREATE
SEQUENCE
seq
;
--
connection
node_2
--
error
ER_NO_SUCH_TABLE
SHOW
CREATE
SEQUENCE
seq
;
sql/sql_sequence.cc
View file @
c6a890a7
...
...
@@ -908,6 +908,13 @@ bool Sql_cmd_alter_sequence::execute(THD *thd)
if
(
check_grant
(
thd
,
ALTER_ACL
,
first_table
,
FALSE
,
1
,
FALSE
))
DBUG_RETURN
(
TRUE
);
/* purecov: inspected */
#ifdef WITH_WSREP
if
(
WSREP_ON
&&
WSREP
(
thd
)
&&
wsrep_to_isolation_begin
(
thd
,
first_table
->
db
.
str
,
first_table
->
table_name
.
str
,
first_table
))
DBUG_RETURN
(
TRUE
);
#endif
/* WITH_WSREP */
if
(
if_exists
())
thd
->
push_internal_handler
(
&
no_such_table_handler
);
error
=
open_and_lock_tables
(
thd
,
first_table
,
FALSE
,
0
);
...
...
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