Cleaner handling of global_system_variables.wsrep_on

Bug #1370647 reported by Nirbhay Choubey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
New
Undecided
Unassigned

Bug Description

While going through the code I found that global value of wsrep_on is flipped quite a number of times. This may lead to confusion and bugs.

For instance :

a) In init_common_variables() wsrep_check_opts returns non-zero (error) when say binlog_format=statement.
...
  /* This is a protection against mutually incompatible option values. */
  if (WSREP_ON && wsrep_check_opts (remaining_argc, remaining_argv))
    global_system_variables.wsrep_on= 0;
...

b) Later its back to ON during option handing (default ON).
...
  if (get_options(&remaining_argc, &remaining_argv))
...

c) Then its set again in wsrep_init() based on wsrep_provider's value.

Eventually, the node will be up given a valid provider is specified. But this was not intended according to (a).

Revision history for this message
Nirbhay Choubey (nirbhay) wrote :

Step (b) turns it back ON as @@global.wsrep_on is ON by default.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.