anchor.diff:      ErrorsJson = couch_rep_httpc:request(Db#http_db{
           resource = "_bulk_docs",
           method = post,
  -        body = {fun upload_docs/1, {start, Docs}},
  +        body = {fun upload_docs/1, {start, self(), Docs}},
           headers = [{"transfer-encoding", "chunked"} | Db#http_db.headers]
       }),
       ErrorsList =
  
positive.code:         end,
          Parent ! {writer_checkpoint, HighSeq},
          couch_rep_att:cleanup(),
          writer_loop(Parent, Reader, Target)
      end.
  
  
negative.code:             Reason = proplists:get_value(<<"reason">>, Props),
              {{Id, Rev}, {ErrId, Reason}}
          end, ErrorsJson),
      receive
      {docs_remaining, 0} ->
          {ok, lists:flatten([ErrorsList|ErrorsAcc])};
      {docs_remaining, N} ->
          MoreDocs = lists:nthtail(length(Docs)-N, Docs),
          write_docs(Db, MoreDocs, [ErrorsList|ErrorsAcc])
      end;
  write_docs(Db, Docs, _) ->
  