From 2f870f53767f225fa20a7b04d5f16712370904c8 Mon Sep 17 00:00:00 2001 From: Teemu Ollakka Date: Tue, 15 Sep 2015 13:20:55 +0300 Subject: [PATCH] Restore original value of wsrep_on after waiting for sync point. --- mysql-test/include/galera_wait_sync_point.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mysql-test/include/galera_wait_sync_point.inc b/mysql-test/include/galera_wait_sync_point.inc index f7019ae3a19..cf3a4980186 100644 --- a/mysql-test/include/galera_wait_sync_point.inc +++ b/mysql-test/include/galera_wait_sync_point.inc @@ -1,5 +1,6 @@ -let $wait_timeout = 10; +--let $wait_timeout = 10 +--let $wsrep_on_orig = `SELECT @@wsrep_on` SET SESSION wsrep_on = 0; --let $wait_condition = SELECT 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_debug_sync_waiters' AND VARIABLE_VALUE = '$galera_sync_point' --source include/wait_condition.inc -SET SESSION wsrep_on = 1; +--eval SET SESSION wsrep_on = $wsrep_on_orig