Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mysql-test/suite/galera/r/MDEV-38073.result
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
connection node_2;
connection node_1;
connection node_1;
connection node_2;
connection node_2;
connection node_1;
CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
Expand Down
7 changes: 7 additions & 0 deletions mysql-test/suite/galera/t/MDEV-38073.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
--source include/have_innodb.inc
--source include/big_test.inc

# Save original auto_increment_offset values.
--let $node_1=node_1
--let $node_2=node_2
--source include/auto_increment_offset_save.inc

# Restart the node 2 in transaction_read_only mode.
--connection node_2
--source include/shutdown_mysqld.inc
Expand Down Expand Up @@ -37,3 +42,5 @@ SELECT COUNT(*) = 2 FROM t1;
# Cleanup
--connection node_1
DROP TABLE t1;

--source include/auto_increment_offset_restore.inc
2 changes: 2 additions & 0 deletions sql/wsrep_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,8 @@ thd::thd (my_bool ini, bool system_thread)
wsrep_assign_from_threadvars(ptr);
wsrep_store_threadvars(ptr);

ptr->tx_read_only= false;
ptr->variables.tx_read_only= false;
ptr->variables.tx_isolation= ISO_READ_COMMITTED;
ptr->variables.sql_log_bin = 0;
ptr->variables.option_bits &= ~OPTION_BIN_LOG; // disable binlog
Expand Down