anchor.diff:  handle_call(disable_auto_failover, From, State) ->
       handle_call({disable_auto_failover, []}, From, State);
   %% @doc Auto-failover is already disabled, so we don't do anything
  -handle_call({disable_auto_failover, _}, _From, #state{tick_ref=nil}=State) ->
  +handle_call({disable_auto_failover, _}, _From,
  +            #state{tick_ref = nil} = State) ->
       {reply, ok, State};
   %% @doc Auto-failover is enabled, disable it
  -handle_call({disable_auto_failover, Extras}, _From, #state{tick_ref=Ref}=State) ->
  +handle_call({disable_auto_failover, Extras}, _From,
  +            #state{tick_ref = Ref} = State) ->
       ?log_debug("disable_auto_failover: ~p", [State]),
       {ok, cancel} = timer2:cancel(Ref),
  -    State2 = State#state{tick_ref=nil, auto_failover_logic_state = undefined},
  +    State2 = State#state{tick_ref = nil, auto_failover_logic_state = undefined},
       make_state_persistent(State2, Extras),
       ale:info(?USER_LOGGER, "Disabled auto-failover"),
       {reply, ok, State2};
  
positive.code:           auto_failover_logic_state,
            %% Reference to the ns_tick_event. If it is nil, auto-failover is
            %% disabled.
            tick_ref=nil :: nil | timer:tref(),
            %% Time a node needs to be down until it is automatically failovered
            timeout=nil :: nil | integer(),
            %% Counts the number of nodes that were already auto-failovered
            count=0 :: non_neg_integer(),
  
            %% Whether we reported to the user autofailover_unsafe condition
            reported_autofailover_unsafe=false :: boolean(),
            %% Whether we reported that max number of auto failovers was reached
            reported_max_reached=false :: boolean(),
            %% Whether we reported that we could not auto failover because of
            %% rebalance
            reported_rebalance_running=false :: boolean(),
            %% Whether we reported that we could not auto failover because of
            %% recovery mode
            reported_in_recovery=false :: boolean()
           }).
  
  %%
  
negative.code: handle_call(_Request, _From, State) ->
      {reply, ok, State}.
  
  handle_cast(reset_auto_failover_count, #state{count = 0} = State) ->
      {noreply, State};
  handle_cast(reset_auto_failover_count, State) ->
      ?log_debug("reset auto_failover count: ~p", [State]),
      State2 = State#state{count = 0,
                           auto_failover_logic_state = init_logic_state(State#state.timeout)},
      State3 = init_reported(State2),
      make_state_persistent(State3),
  