Merge lp:~percona-core/percona-xtradb-cluster/bug-1402338 into lp:percona-xtradb-cluster

Proposed by Raghavendra D Prabhu
Status: Merged
Approved by: Alexey Kopytov
Approved revision: 947
Merge reported by: Raghavendra D Prabhu
Merged at revision: not available
Proposed branch: lp:~percona-core/percona-xtradb-cluster/bug-1402338
Merge into: lp:percona-xtradb-cluster
Diff against target: 61 lines (+22/-4)
3 files modified
mysql-test/suite/galera/r/galera_var_replicate_myisam_off.result (+2/-3)
mysql-test/suite/galera/t/galera_var_replicate_myisam_off.test (+2/-1)
sql/wsrep_mysqld.cc (+18/-0)
To merge this branch: bzr merge lp:~percona-core/percona-xtradb-cluster/bug-1402338
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Review via email: mp+244757@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) wrote :

Are you going to fix this in 5.5? If not, should the bug status in 5.5 be "Won't Fix" or "Invalid"?

review: Needs Information
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Submitted for 5.5 as well.

Revision history for this message
Alexey Kopytov (akopytov) wrote :
review: Needs Fixing
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Fixed.

Revision history for this message
Alexey Kopytov (akopytov) wrote :

You don't really need "\" at line 45.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'mysql-test/suite/galera/r/galera_var_replicate_myisam_off.result'
--- mysql-test/suite/galera/r/galera_var_replicate_myisam_off.result 2014-09-26 09:54:38 +0000
+++ mysql-test/suite/galera/r/galera_var_replicate_myisam_off.result 2015-01-27 11:57:39 +0000
@@ -1,8 +1,7 @@
1SET GLOBAL wsrep_replicate_myisam = FALSE;1SET GLOBAL wsrep_replicate_myisam = FALSE;
2CREATE TABLE t1 (f1 INT PRIMARY KEY) Engine=MyISAM;2CREATE TABLE t1 (f1 INT PRIMARY KEY) Engine=MyISAM;
3INSERT INTO t1 VALUES (1);3INSERT INTO t1 VALUES (1);
4SELECT COUNT(*) = 0 FROM t1;4SELECT * FROM t1;
5COUNT(*) = 05ERROR 42S02: Table 'test.t1' doesn't exist
61
7SET GLOBAL wsrep_replicate_myisam = 0;6SET GLOBAL wsrep_replicate_myisam = 0;
8DROP TABLE t1;7DROP TABLE t1;
98
=== modified file 'mysql-test/suite/galera/t/galera_var_replicate_myisam_off.test'
--- mysql-test/suite/galera/t/galera_var_replicate_myisam_off.test 2014-09-26 09:54:38 +0000
+++ mysql-test/suite/galera/t/galera_var_replicate_myisam_off.test 2015-01-27 11:57:39 +0000
@@ -13,7 +13,8 @@
13INSERT INTO t1 VALUES (1);13INSERT INTO t1 VALUES (1);
1414
15--connection node_215--connection node_2
16SELECT COUNT(*) = 0 FROM t1;16--error ER_NO_SUCH_TABLE
17SELECT * FROM t1;
1718
18--connection node_119--connection node_1
19--eval SET GLOBAL wsrep_replicate_myisam = $wsrep_replicate_myisam_orig20--eval SET GLOBAL wsrep_replicate_myisam = $wsrep_replicate_myisam_orig
2021
=== modified file 'sql/wsrep_mysqld.cc'
--- sql/wsrep_mysqld.cc 2014-11-14 00:39:17 +0000
+++ sql/wsrep_mysqld.cc 2015-01-27 11:57:39 +0000
@@ -1410,11 +1410,29 @@
1410 const TABLE_LIST* table_list)1410 const TABLE_LIST* table_list)
1411{1411{
14121412
1413 LEX *lex;
1413 /*1414 /*
1414 No isolation for applier or replaying threads.1415 No isolation for applier or replaying threads.
1415 */1416 */
1416 if (thd->wsrep_exec_mode == REPL_RECV) return 0;1417 if (thd->wsrep_exec_mode == REPL_RECV) return 0;
14171418
1419
1420 lex= thd->lex;
1421 if (!wsrep_replicate_myisam && lex->create_info.db_type && \
1422 lex->create_info.db_type->db_type == DB_TYPE_MYISAM)
1423 {
1424 if (db_)
1425 {
1426 WSREP_INFO("Cannot replicate MyISAM DDL for %s.%s with wsrep_replicate_myisam OFF", db_, table_);
1427 }
1428 else
1429 {
1430 WSREP_INFO("Cannot replicate MyISAM DDL with wsrep_replicate_myisam OFF");
1431 }
1432
1433 return 0;
1434 }
1435
1418 int ret= 0;1436 int ret= 0;
1419 mysql_mutex_lock(&thd->LOCK_wsrep_thd);1437 mysql_mutex_lock(&thd->LOCK_wsrep_thd);
14201438

Subscribers

People subscribed via source and target branches

to all changes: