Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Commit

Permalink
Update filtered replication id when it changes in doc processor ETS t…
Browse files Browse the repository at this point in the history
…able

When replication filter changes, replication id record in doc processor ETS
table was not updated. This led to the new replication job not showing up in
the _scheduler/docs output.
  • Loading branch information
nickva committed Dec 8, 2016
1 parent 80e0bfc commit 606d410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/couch_replicator_doc_processor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ worker_returned(Ref, Id, {ok, RepId}) ->
% for future changes.
ok = couch_replicator_scheduler:remove_job(OldRepId),
Msg = io_lib:format("Replication id changed: ~p -> ~p", [OldRepId, RepId]),
Row0#rdoc{info = couch_util:to_binary(Msg)};
Row0#rdoc{rid = RepId, info = couch_util:to_binary(Msg)};
#rdoc{rid = nil} ->
% Calculated new replication id for non-filtered replication. Remove
% replication doc body, after this we won't needed any more.
Expand Down

0 comments on commit 606d410

Please sign in to comment.