summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2015-10-13 15:42:53 -0400
committerNirbhay Choubey <nirbhay@mariadb.com>2015-10-13 15:42:53 -0400
commit8d2d947ac124b488abae5aff835a0d7c23e0302b (patch)
tree6a641638bf4056bd649352ae486c2ba901502791 /mysql-test
parentfd68a7dac625be8ba64745474d85f689ddeb9ea0 (diff)
downloadmariadb-git-8d2d947ac124b488abae5aff835a0d7c23e0302b.tar.gz
Fix galera_var_dirty_reads test.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/suite/galera/t/galera_var_dirty_reads.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/suite/galera/t/galera_var_dirty_reads.test b/mysql-test/suite/galera/t/galera_var_dirty_reads.test
index 855f4abdbf0..9eea8efdaf3 100644
--- a/mysql-test/suite/galera/t/galera_var_dirty_reads.test
+++ b/mysql-test/suite/galera/t/galera_var_dirty_reads.test
@@ -5,6 +5,14 @@
--source include/galera_cluster.inc
--source include/have_innodb.inc
+--disable_query_log
+# Save original auto_increment_offset values.
+--connection node_1
+let $auto_increment_offset_node_1 = `SELECT @@global.auto_increment_offset`;
+--connection node_2
+let $auto_increment_offset_node_2 = `SELECT @@global.auto_increment_offset`;
+--enable_query_log
+
--connection node_2
--let $wsrep_cluster_address_saved = `SELECT @@global.wsrep_cluster_address`
@@ -41,6 +49,14 @@ SELECT * FROM t1;
# Cleanup
DROP TABLE t1;
+--disable_query_log
+# Restore original auto_increment_offset values.
+--connection node_1
+--eval SET @@global.auto_increment_offset = $auto_increment_offset_node_1;
+--connection node_2
+--eval SET @@global.auto_increment_offset = $auto_increment_offset_node_2;
+--enable_query_log
+
--source include/galera_end.inc
--echo # End of test