anchor.diff:                        ok ->
                             ?user_log(?EVENT_NODE_AUTO_FAILOVERED,
                                       "Node (~p) was automatically failovered.~n~p",
  -                                    [Node, ns_doctor:get_node(Node)]),
  +                                    [Node, ns_doctor:get_node(Node, NodeStatuses)]),
                             init_reported(S#state{count = S#state.count+1});
                         {autofailover_unsafe, UnsafeBuckets} ->
                             case should_report(#state.reported_autofailover_unsafe, S) of
  
positive.code:     State = State0#state{count=AutoFailoverCount},
  
      NonPendingNodes = lists:sort(ns_cluster_membership:active_nodes(Config)),
      CurrentlyDown = actual_down_nodes(NonPendingNodes, Config),
      {Actions, LogicState} =
          auto_failover_logic:process_frame(NonPendingNodes,
                                            CurrentlyDown,
  
negative.code: %%
  
  %% @doc Returns a list of nodes that should be active, but are not running.
  -spec actual_down_nodes(dict(), [atom()], [{atom(), term()}]) -> [atom()].
  actual_down_nodes(NodesDict, NonPendingNodes, Config) ->
      % Get all buckets
      BucketConfigs = ns_bucket:get_buckets(Config),
      actual_down_nodes_inner(NonPendingNodes, BucketConfigs, NodesDict, erlang:now()).
  
  actual_down_nodes_inner(NonPendingNodes, BucketConfigs, NodesDict, Now) ->
  