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
43745018
Commit
43745018
authored
Mar 24, 2016
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ugly test removed for now.
parent
2783fc7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
137 deletions
+0
-137
mysql-test/suite/binlog/r/binlog_concurrent_drop_create.result
...-test/suite/binlog/r/binlog_concurrent_drop_create.result
+0
-52
mysql-test/suite/binlog/t/binlog_concurrent_drop_create.test
mysql-test/suite/binlog/t/binlog_concurrent_drop_create.test
+0
-85
No files found.
mysql-test/suite/binlog/r/binlog_concurrent_drop_create.result
deleted
100644 → 0
View file @
2783fc7d
include/master-slave.inc
[connection master]
RESET MASTER;
DROP DATABASE IF EXISTS db_717;
DROP EVENT IF EXISTS test.e_x1;
set @saved_global_binlog_format = @@global.binlog_format;
set @saved_local_binlog_format = @@session.binlog_format;
SET GLOBAL BINLOG_FORMAT = STATEMENT;
SET SESSION BINLOG_FORMAT = STATEMENT;
CREATE DATABASE db_717;
CREATE FUNCTION db_717.f1() RETURNS INT RETURN 1;
DROP DATABASE db_717;
CREATE FUNCTION db_717.f2() RETURNS INT RETURN 1;
CREATE DATABASE db_717;
CREATE EVENT db_717.e_x1 ON SCHEDULE EVERY 1000 HOUR DO CREATE TABLE t1(id int);
DROP DATABASE db_717;
CREATE EVENT db_717.e_x2 ON SCHEDULE EVERY 1000 HOUR DO CREATE TABLE t1(id int);
CREATE DATABASE db_717;
CREATE EVENT test.e_x1 ON SCHEDULE EVERY 1000 HOUR DO CREATE TABLE t1(id int);
DROP DATABASE db_717;
ALTER EVENT test.e_x1 RENAME TO db_717.e_x2;
DROP EVENT test.e_x1;
include/show_binlog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # DROP DATABASE IF EXISTS db_717
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # use `test`; DROP EVENT IF EXISTS test.e_x1
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # CREATE DATABASE db_717
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` FUNCTION `db_717`.`f1`() RETURNS int(11)
RETURN 1
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # DROP DATABASE db_717
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # CREATE DATABASE db_717
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` EVENT db_717.e_x1 ON SCHEDULE EVERY 1000 HOUR DO CREATE TABLE t1(id int)
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # DROP DATABASE db_717
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # CREATE DATABASE db_717
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` EVENT test.e_x1 ON SCHEDULE EVERY 1000 HOUR DO CREATE TABLE t1(id int)
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # DROP DATABASE db_717
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # use `test`; DROP EVENT test.e_x1
SET GLOBAL BINLOG_FORMAT = @saved_global_binlog_format;
SET SESSION BINLOG_FORMAT = @saved_local_binlog_format;
include/rpl_end.inc
mysql-test/suite/binlog/t/binlog_concurrent_drop_create.test
deleted
100644 → 0
View file @
2783fc7d
# MDEV-717
# DROP DATABASE and CREATE PROCEDURE|FUNCTION|EVENT
# statements can appear in wrong order in the binlog.
#
# Note - the test can be undeterministic.
--
source
include
/
master
-
slave
.
inc
RESET
MASTER
;
--
disable_warnings
DROP
DATABASE
IF
EXISTS
db_717
;
DROP
EVENT
IF
EXISTS
test
.
e_x1
;
--
enable_warnings
set
@
saved_global_binlog_format
=
@@
global
.
binlog_format
;
set
@
saved_local_binlog_format
=
@@
session
.
binlog_format
;
SET
GLOBAL
BINLOG_FORMAT
=
STATEMENT
;
SET
SESSION
BINLOG_FORMAT
=
STATEMENT
;
# test function creation
CREATE
DATABASE
db_717
;
CREATE
FUNCTION
db_717
.
f1
()
RETURNS
INT
RETURN
1
;
--
send
DROP
DATABASE
db_717
;
--
connection
master1
--
error
0
,
ER_BAD_DB_ERROR
CREATE
FUNCTION
db_717
.
f2
()
RETURNS
INT
RETURN
1
;
--
connection
master
--
reap
# test event creation
CREATE
DATABASE
db_717
;
CREATE
EVENT
db_717
.
e_x1
ON
SCHEDULE
EVERY
1000
HOUR
DO
CREATE
TABLE
t1
(
id
int
);
--
send
DROP
DATABASE
db_717
;
--
connection
master1
--
error
0
,
ER_BAD_DB_ERROR
CREATE
EVENT
db_717
.
e_x2
ON
SCHEDULE
EVERY
1000
HOUR
DO
CREATE
TABLE
t1
(
id
int
);
--
connection
master
--
reap
# test event modification
CREATE
DATABASE
db_717
;
CREATE
EVENT
test
.
e_x1
ON
SCHEDULE
EVERY
1000
HOUR
DO
CREATE
TABLE
t1
(
id
int
);
--
send
DROP
DATABASE
db_717
;
--
connection
master1
--
error
0
,
ER_BAD_DB_ERROR
ALTER
EVENT
test
.
e_x1
RENAME
TO
db_717
.
e_x2
;
--
connection
master
--
reap
DROP
EVENT
test
.
e_x1
;
source
include
/
show_binlog_events
.
inc
;
SET
GLOBAL
BINLOG_FORMAT
=
@
saved_global_binlog_format
;
SET
SESSION
BINLOG_FORMAT
=
@
saved_local_binlog_format
;
--
source
include
/
rpl_end
.
inc
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