Skip to content

Commit

Permalink
Restore original value of wsrep_on after waiting for sync point.
Browse files Browse the repository at this point in the history
  • Loading branch information
temeo authored and Nirbhay Choubey committed Feb 22, 2016
1 parent d01328d commit 2f870f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mysql-test/include/galera_wait_sync_point.inc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2f870f5

Please sign in to comment.