anchor.diff:        end, Nodes).
   
   set_replicas(Bucket, NodesReplicas) ->
  +    LiveNodes = ns_node_disco:nodes_actual_proper(),
  +    set_replicas_on_nodes(Bucket, NodesReplicas, LiveNodes).
  +
  +set_replicas_on_nodes(Bucket, NodesReplicas, LiveNodes) ->
       %% Replace with the empty list if replication is disabled
       NR = case ns_config:search_node_prop(node(), ns_config:get(), replication,
                                       enabled, true) of
  
positive.code:                             end
                      end, 0, Replicators),
      NewReplicasList = dict:to_list(NewReplicas),
      set_replicas(Bucket, NewReplicasList),
      ActualChangesCount.
  
  
  replicators(Nodes, Bucket) ->
      lists:flatmap(
  
negative.code:                  NodesReplicas;
               false -> []
           end,
      %% Kill all replicators on nodes not in NR
      NodesWithoutReplicas = LiveNodes -- [N || {N, _} <- NR],
      lists:foreach(fun (Node) -> kill_all_children(Node, Bucket) end,
  