anchor.diff:          ok;
       {HighSeq, Docs} ->
           DocCount = length(Docs),
  -        try write_docs(Target, Docs) of
  +        try write_docs(Target, Docs, []) of
           {ok, []} ->
               Parent ! {update_stats, docs_written, DocCount};
           {ok, Errors} ->
  
positive.code:             Reason = proplists:get_value(<<"reason">>, Props),
              {{Id, Rev}, {ErrId, Reason}}
          end, ErrorsJson),
      {ok, ErrorsList};
  write_docs(Db, Docs) ->
      couch_db:update_docs(Db, Docs, [], replicated_changes).
  
negative.code:         writer_loop(Parent, Reader, Target)
      end.
  
  write_docs(#http_db{} = Db, Docs, ErrorsAcc) ->
      ErrorsJson = couch_rep_httpc:request(Db#http_db{
          resource = "_bulk_docs",
          method = post,
  