-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-6490: mysqldump unknown option --galera-sst-mode
* Merged patches pushed to 10.0. * Additional fix in wsrep_sst_mysqldump.sh to control use of RESET MASTER and mysqldump's galera-sst-mode option based on joiner's @@log-bin value.
- Loading branch information
Nirbhay Choubey
committed
Aug 7, 2014
1 parent
746c755
commit f842099
Showing
5 changed files
with
109 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# Test for mysqldump's galera-sst-mode option | ||
# | ||
# | ||
# MDEV-6490: mysqldump unknown option --galera-sst-mode | ||
# | ||
CREATE DATABASE bug6490; | ||
USE bug6490; | ||
CREATE TABLE t1(c1 INT); | ||
INSERT INTO t1 values (1); | ||
INSERT INTO t1 values (2); | ||
# Save the current gtid_binlog_state. | ||
# Take a dump of bug6490 database | ||
DROP TABLE t1; | ||
# Load the dump | ||
RESET MASTER; | ||
SELECT * from t1; | ||
c1 | ||
1 | ||
2 | ||
# Compare the two gtid_binlog_state's | ||
# Cleanup | ||
DROP DATABASE bug6490; | ||
# End of test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Embedded server doesn't support external clients | ||
--source include/not_embedded.inc | ||
# Binlog is required | ||
--source include/have_log_bin.inc | ||
|
||
--echo # | ||
--echo # Test for mysqldump's galera-sst-mode option | ||
--echo # | ||
|
||
--echo # | ||
--echo # MDEV-6490: mysqldump unknown option --galera-sst-mode | ||
--echo # | ||
CREATE DATABASE bug6490; | ||
USE bug6490; | ||
CREATE TABLE t1(c1 INT); | ||
INSERT INTO t1 values (1); | ||
INSERT INTO t1 values (2); | ||
|
||
--echo # Save the current gtid_binlog_state. | ||
--let $before= `SELECT @@global.gtid_binlog_state` | ||
|
||
--echo # Take a dump of bug6490 database | ||
--exec $MYSQL_DUMP --galera-sst-mode bug6490 > $MYSQLTEST_VARDIR/tmp/bug6490.sql | ||
DROP TABLE t1; | ||
|
||
--echo # Load the dump | ||
RESET MASTER; | ||
--exec $MYSQL -uroot bug6490 < $MYSQLTEST_VARDIR/tmp/bug6490.sql | ||
|
||
SELECT * from t1; | ||
|
||
--echo # Compare the two gtid_binlog_state's | ||
--let $after= `SELECT @@global.gtid_binlog_state` | ||
if (`SELECT STRCMP($before, $after)`) | ||
{ | ||
--die ERROR: The two gtid_binlog_state's did not match. | ||
} | ||
|
||
--echo # Cleanup | ||
--remove_file $MYSQLTEST_VARDIR/tmp/bug6490.sql | ||
DROP DATABASE bug6490; | ||
|
||
--echo # End of test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters