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

    
https://github.com/apache/couchdb-couch-replicator/pull/34#discussion_r58082760
  
    --- Diff: src/couch_replicator_manager.erl ---
    @@ -134,9 +134,14 @@ replication_error(#rep{id = {BaseId, _} = RepId}, 
Error) ->
     continue(#rep{doc_id = null}) ->
         {true, no_owner};
     continue(#rep{id = RepId}) ->
    -    Owner = gen_server:call(?MODULE, {owner, RepId}, infinity),
    -    {node() == Owner, Owner}.
    -
    +    case rep_state(RepId) of
    +    nil ->
    +        {false, nonode};
    +    #rep_state{rep = #rep{db_name = DbName, doc_id = DocId}} ->
    +        Node = node(),
    +        Owner = owner(DbName, DocId, [Node | nodes()]),
    --- End diff --
    
    (The idea being that, eventually, all nodes would have rescanned with the 
same [node()|nodes()] value if we're tracking it in state. It could well be 
just the same as you are doing).


---
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