anchor.diff:          error_logger:warning_report({"Replication failed!"}),
           failed;
   
  -replicate_proc({DServer, DomainID, EntryID, Entry} = R, Tries) ->
  +replicate_proc({DServer, DomainID, EntryID, Entry, Nrepl} = R, Tries) ->
           % XXX: This is the correct line:
           %Me = {net_adm:localhost(), node(), self()},
           % XXX: This is for debugging:
  
positive.code:         error_logger:info_report("launch rsync etc"),
          {noreply, D};
  
  handle_cast({sync_pack, From, Pack, Distance},
          #domain{sync_ids = LeafIDs, sync_outbox = Outbox, owner = true} = D) ->
  
          Requests = lists:foldl(fun({Leaf, RSyncIDs}, RequestList) ->
                  if LeafIDs == none -> 
  
negative.code: %%% Put with replication
  %%%
  
  replicate(#domain{db = DB, size = Size, id = DomainID, info = InfoPack},
          EntryID, Entry) ->
  
          Nrepl = proplists:get_value(nrepl, InfoPack),
          DServer = self(),
          case do_write(DB, Entry, Size, new_entry) of
                  chunk_full -> chunk_full;
                  _ -> spawn(fun() -> replicate_proc(
                          {DServer, DomainID, EntryID, Entry, Nrepl}, 0)
                          end)
          end.
  
  