Skip to content

Commit

Permalink
disable wsrep by default.
Browse files Browse the repository at this point in the history
fix wsrep not to crash when started disabled
  • Loading branch information
vuvova committed Oct 1, 2014
1 parent 4b9bf9d commit d06b5b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5664,6 +5664,8 @@ int mysqld_main(int argc, char **argv)
wsrep_create_appliers(wsrep_slave_threads - 1);
}
}
else
wsrep_init_startup (false);

if (opt_bootstrap)
{
Expand Down Expand Up @@ -8523,7 +8525,7 @@ static int mysql_init_variables(void)
strmake_buf(mysql_home, tmpenv);
#endif

if (WSREP_ON && wsrep_init_vars())
if (wsrep_init_vars())
return 1;

return 0;
Expand Down
2 changes: 1 addition & 1 deletion sql/sys_vars.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4575,7 +4575,7 @@ static Sys_var_mybool Sys_wsrep_sst_donor_rejects_queries(
static Sys_var_mybool Sys_wsrep_on (
"wsrep_on", "To enable wsrep replication ",
SESSION_VAR(wsrep_on),
CMD_LINE(OPT_ARG), DEFAULT(TRUE),
CMD_LINE(OPT_ARG), DEFAULT(FALSE),
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(0),
ON_UPDATE(wsrep_on_update));

Expand Down

0 comments on commit d06b5b6

Please sign in to comment.