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
3a88adc3
Commit
3a88adc3
authored
May 05, 2016
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-717 LP:1003679 - Wrong binlog order on concurrent DROP schema and
CREATE function. Test case added.
parent
46973bb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
0 deletions
+85
-0
mysql-test/suite/binlog/r/binlog_mdev717.result
mysql-test/suite/binlog/r/binlog_mdev717.result
+40
-0
mysql-test/suite/binlog/t/binlog_mdev717.test
mysql-test/suite/binlog/t/binlog_mdev717.test
+45
-0
No files found.
mysql-test/suite/binlog/r/binlog_mdev717.result
0 → 100644
View file @
3a88adc3
RESET MASTER;
CREATE DATABASE mysqltest;
SET DEBUG_SYNC= "after_wait_locked_schema_name SIGNAL locked WAIT_FOR release";
DROP DATABASE mysqltest;;
SET DEBUG_SYNC= "now WAIT_FOR locked";
SET DEBUG_SYNC= "before_wait_locked_pname SIGNAL release";
CREATE FUNCTION mysqltest.f1() RETURNS INT RETURN 1;
ERROR 42000: Unknown database 'mysqltest'
CREATE DATABASE mysqltest;
SET DEBUG_SYNC= "after_wait_locked_schema_name SIGNAL locked WAIT_FOR release";
DROP DATABASE mysqltest;;
SET DEBUG_SYNC= "now WAIT_FOR locked";
SET DEBUG_SYNC= "before_wait_locked_pname SIGNAL release";
CREATE EVENT mysqltest.e1 ON SCHEDULE EVERY 15 MINUTE DO BEGIN END;
ERROR 42000: Unknown database 'mysqltest'
CREATE DATABASE mysqltest;
CREATE EVENT mysqltest.e1 ON SCHEDULE EVERY 15 MINUTE DO BEGIN END;
SET DEBUG_SYNC= "after_wait_locked_schema_name SIGNAL locked WAIT_FOR release";
DROP DATABASE mysqltest;;
SET DEBUG_SYNC= "now WAIT_FOR locked";
SET DEBUG_SYNC= "before_wait_locked_pname SIGNAL release";
ALTER EVENT mysqltest.e1 ON SCHEDULE EVERY 20 MINUTE DO BEGIN END;
ERROR 42000: Unknown database 'mysqltest'
SET DEBUG_SYNC= "RESET";
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 # # CREATE DATABASE mysqltest
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # DROP DATABASE mysqltest
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # CREATE DATABASE mysqltest
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # DROP DATABASE mysqltest
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # CREATE DATABASE mysqltest
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` EVENT mysqltest.e1 ON SCHEDULE EVERY 15 MINUTE DO BEGIN END
master-bin.000001 # Gtid # # GTID #-#-#
master-bin.000001 # Query # # DROP DATABASE mysqltest
mysql-test/suite/binlog/t/binlog_mdev717.test
0 → 100644
View file @
3a88adc3
# MDEV-717 LP:1003679 - Wrong binlog order on concurrent DROP schema and CREATE function.
--
source
include
/
have_log_bin
.
inc
RESET
MASTER
;
connect
(
con1
,
localhost
,
root
);
connection
default
;
CREATE
DATABASE
mysqltest
;
SET
DEBUG_SYNC
=
"after_wait_locked_schema_name SIGNAL locked WAIT_FOR release"
;
--
send
DROP
DATABASE
mysqltest
;
connection
con1
;
SET
DEBUG_SYNC
=
"now WAIT_FOR locked"
;
SET
DEBUG_SYNC
=
"before_wait_locked_pname SIGNAL release"
;
--
error
ER_BAD_DB_ERROR
CREATE
FUNCTION
mysqltest
.
f1
()
RETURNS
INT
RETURN
1
;
connection
default
;
--
reap
CREATE
DATABASE
mysqltest
;
SET
DEBUG_SYNC
=
"after_wait_locked_schema_name SIGNAL locked WAIT_FOR release"
;
--
send
DROP
DATABASE
mysqltest
;
connection
con1
;
SET
DEBUG_SYNC
=
"now WAIT_FOR locked"
;
SET
DEBUG_SYNC
=
"before_wait_locked_pname SIGNAL release"
;
--
error
ER_BAD_DB_ERROR
CREATE
EVENT
mysqltest
.
e1
ON
SCHEDULE
EVERY
15
MINUTE
DO
BEGIN
END
;
connection
default
;
--
reap
CREATE
DATABASE
mysqltest
;
CREATE
EVENT
mysqltest
.
e1
ON
SCHEDULE
EVERY
15
MINUTE
DO
BEGIN
END
;
SET
DEBUG_SYNC
=
"after_wait_locked_schema_name SIGNAL locked WAIT_FOR release"
;
--
send
DROP
DATABASE
mysqltest
;
connection
con1
;
SET
DEBUG_SYNC
=
"now WAIT_FOR locked"
;
SET
DEBUG_SYNC
=
"before_wait_locked_pname SIGNAL release"
;
--
error
ER_BAD_DB_ERROR
ALTER
EVENT
mysqltest
.
e1
ON
SCHEDULE
EVERY
20
MINUTE
DO
BEGIN
END
;
connection
default
;
--
reap
SET
DEBUG_SYNC
=
"RESET"
;
--
source
include
/
show_binlog_events
.
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