anchor.diff:  split_replications([], _, Tap, Upr) ->
       {lists:reverse(Tap), lists:reverse(Upr)};
   split_replications([{SrcNode, Partitions} | Rest], State, Tap, Upr) ->
  -    {TapP, UprP} = split_partitions(Partitions, State),
  +    {TapP, UprP} = split_partitions(Partitions, State#state.repl_type),
       split_replications(Rest, State, [{SrcNode, TapP} | Tap], [{SrcNode, UprP} | Upr]).
   
   replication_type(Partition, ReplType) ->
  
positive.code:             Pid
      end.
  
  split_partitions(Partitions,
                   #state{repl_type = {upr, TapPartitions}}) ->
      {ordsets:intersection(Partitions, TapPartitions),
       ordsets:subtract(Partitions, TapPartitions)}.
  
  
negative.code:          remove_undesired_replications/2,
           set_replication_type/2,
           upr_takeover/3]).
  
  -export([split_partitions/2]).
  
  -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
  
  