Skip to content

Commit

Permalink
Use session variables for OSU method
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Lefranc committed Jun 22, 2016
1 parent c1e8338 commit 3557cda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ginnoptimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ def enable_rsu():
"""
print_color('+', 'Enabling RSU mode')
print ''
check_and_set_param('SHOW GLOBAL VARIABLES LIKE "wsrep_OSU_method";',
check_and_set_param('SHOW VARIABLES LIKE "wsrep_OSU_method";',
'wsrep_OSU_method', 'RSU',
'SET GLOBAL wsrep_OSU_method="RSU";')
'SET wsrep_OSU_method="RSU";')
check_and_set_param('SHOW GLOBAL VARIABLES LIKE "wsrep_desync";',
'wsrep_desync', 'ON', 'SET GLOBAL wsrep_desync=1;')
print_color('ok')
Expand All @@ -166,9 +166,9 @@ def restore_toi():
'wsrep_on', 'ON', 'SET GLOBAL wsrep_on=ON;')
check_and_set_param('SHOW GLOBAL VARIABLES LIKE "wsrep_desync";',
'wsrep_desync', 'OFF', 'SET GLOBAL wsrep_desync=0;')
check_and_set_param('SHOW GLOBAL VARIABLES LIKE "wsrep_OSU_method";',
check_and_set_param('SHOW VARIABLES LIKE "wsrep_OSU_method";',
'wsrep_OSU_method', 'TOI',
'SET GLOBAL wsrep_OSU_method="TOI";')
'SET wsrep_OSU_method="TOI";')
print_color('ok')


Expand Down

0 comments on commit 3557cda

Please sign in to comment.