Github user kxepal commented on a diff in the pull request:

    
https://github.com/apache/couchdb-couch-replicator/pull/11#discussion_r31571434
  
    --- Diff: src/couch_replicator_api_wrap.erl ---
    @@ -83,9 +83,16 @@ db_open(#httpdb{} = Db1, _Options, Create) ->
                         ok
                     end)
             end,
    -        send_req(Db, [{method, head}],
    -            fun(200, _, _) ->
    -                {ok, Db};
    +        send_req(Db, [{method, get}],
    +            fun(200, _, {Props}) ->
    +                case get_value(<<"update_seq">>, Props) of
    --- End diff --
    
    Broken checkpoints is just a side effect of missing that field in the 
response. As like as if `update_seq` will be missed, replication will start and 
fail with some error in the middle. That's why both are required for clean 
start.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to