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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
37f915c1
Commit
37f915c1
authored
Mar 22, 2016
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.0-galera' into 10.1
parents
52ce743b
7c42b47e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
8 deletions
+52
-8
mysql-test/suite/galera/disabled.def
mysql-test/suite/galera/disabled.def
+0
-1
mysql-test/suite/galera/r/galera_forced_binlog_format.result
mysql-test/suite/galera/r/galera_forced_binlog_format.result
+30
-5
mysql-test/suite/galera/t/galera_forced_binlog_format.test
mysql-test/suite/galera/t/galera_forced_binlog_format.test
+21
-1
sql/sql_class.h
sql/sql_class.h
+1
-1
No files found.
mysql-test/suite/galera/disabled.def
View file @
37f915c1
...
...
@@ -20,7 +20,6 @@ galera_parallel_simple : Failing sporadically
galera_bf_abort : Failing sporadically
galera_log_output_csv : Failing sporadically
galera_as_slave_preordered : wsrep-preordered is not available in MariaDB Galera cluster
galera_forced_binlog_format : TODO: investigate
galera_gra_log : TODO: investigate
galera_as_slave_replication_bundle : TODO: investigate
galera_ssl_upgrade : TODO: investigate
...
...
mysql-test/suite/galera/r/galera_forced_binlog_format.result
View file @
37f915c1
RESET MASTER;
SET SESSION binlog_format = 'STATEMENT';
Warnings:
Warning 1105 MariaDB Galera does not support binlog format: STATEMENT
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1);
SET SESSION binlog_format = 'MIXED';
Warnings:
Warning 1105 MariaDB Galera does not support binlog format: MIXED
INSERT INTO t1 VALUES (2);
SHOW BINLOG EVENTS IN 'mysqld-bin.000001' FROM
120
;
SHOW BINLOG EVENTS IN 'mysqld-bin.000001' FROM
249
;
Log_name Pos Event_type Server_id End_log_pos Info
mysqld-bin.000001 <Pos> Gtid_list 1 <End_log_pos> []
mysqld-bin.000001 <Pos> Binlog_checkpoint 1 <End_log_pos> mysqld-bin.000001
mysqld-bin.000001 <Pos> Gtid 1 <End_log_pos> GTID 0-1-1
mysqld-bin.000001 <Pos> Query 1 <End_log_pos> use `test`; CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB
mysqld-bin.000001 <Pos>
Query 1 <End_log_pos> BEGIN
mysqld-bin.000001 <Pos>
Gtid 1 <End_log_pos> BEGIN GTID 0-1-2
mysqld-bin.000001 <Pos> Table_map 1 <End_log_pos> table_id: ### (test.t1)
mysqld-bin.000001 <Pos> Write_rows 1 <End_log_pos> table_id: ### flags: STMT_END_F
mysqld-bin.000001 <Pos> Write_rows
_v1
1 <End_log_pos> table_id: ### flags: STMT_END_F
mysqld-bin.000001 <Pos> Xid 1 <End_log_pos> COMMIT /* xid=### */
mysqld-bin.000001 <Pos>
Query 1 <End_log_pos> BEGIN
mysqld-bin.000001 <Pos>
Gtid 1 <End_log_pos> BEGIN GTID 0-1-3
mysqld-bin.000001 <Pos> Table_map 1 <End_log_pos> table_id: ### (test.t1)
mysqld-bin.000001 <Pos> Write_rows 1 <End_log_pos> table_id: ### flags: STMT_END_F
mysqld-bin.000001 <Pos> Write_rows
_v1
1 <End_log_pos> table_id: ### flags: STMT_END_F
mysqld-bin.000001 <Pos> Xid 1 <End_log_pos> COMMIT /* xid=### */
DROP TABLE t1;
#
# MDEV-9401: wsrep_forced_binlog_format with binlog causes crash
#
SET SESSION binlog_format = 'ROW';
CREATE DATABASE testdb_9401;
USE testdb_9401;
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
CREATE USER dummy@localhost;
GRANT ALL PRIVILEGES ON testdb_9401.t1 TO dummy@localhost;
FLUSH PRIVILEGES;
SHOW GRANTS FOR dummy@localhost;
Grants for dummy@localhost
GRANT USAGE ON *.* TO 'dummy'@'localhost'
GRANT ALL PRIVILEGES ON `testdb_9401`.`t1` TO 'dummy'@'localhost'
REVOKE ALL PRIVILEGES, GRANT OPTION FROM dummy@localhost;
DROP USER dummy@localhost;
DROP DATABASE testdb_9401;
# End of tests
mysql-test/suite/galera/t/galera_forced_binlog_format.test
View file @
37f915c1
...
...
@@ -20,6 +20,26 @@ INSERT INTO t1 VALUES (2);
--
replace_regex
/
xid
=
[
0
-
9
]
+/
xid
=
###/ /table_id: [0-9]+/table_id: ###/
--
replace_column
2
<
Pos
>
5
<
End_log_pos
>
SHOW
BINLOG
EVENTS
IN
'mysqld-bin.000001'
FROM
120
;
SHOW
BINLOG
EVENTS
IN
'mysqld-bin.000001'
FROM
249
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# MDEV-9401: wsrep_forced_binlog_format with binlog causes crash
--
echo
#
SET
SESSION
binlog_format
=
'ROW'
;
CREATE
DATABASE
testdb_9401
;
USE
testdb_9401
;
CREATE
TABLE
t1
(
f1
INTEGER
PRIMARY
KEY
)
ENGINE
=
InnoDB
;
CREATE
USER
dummy
@
localhost
;
GRANT
ALL
PRIVILEGES
ON
testdb_9401
.
t1
TO
dummy
@
localhost
;
FLUSH
PRIVILEGES
;
SHOW
GRANTS
FOR
dummy
@
localhost
;
# Cleanup
REVOKE
ALL
PRIVILEGES
,
GRANT
OPTION
FROM
dummy
@
localhost
;
DROP
USER
dummy
@
localhost
;
DROP
DATABASE
testdb_9401
;
--
source
include
/
galera_end
.
inc
--
echo
# End of tests
sql/sql_class.h
View file @
37f915c1
...
...
@@ -2177,7 +2177,7 @@ public:
int
is_current_stmt_binlog_format_row
()
const
{
DBUG_ASSERT
(
current_stmt_binlog_format
==
BINLOG_FORMAT_STMT
||
current_stmt_binlog_format
==
BINLOG_FORMAT_ROW
);
return
WSREP_FORMAT
(
current_stmt_binlog_format
)
==
BINLOG_FORMAT_ROW
;
return
current_stmt_binlog_format
==
BINLOG_FORMAT_ROW
;
}
enum
binlog_filter_state
...
...
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