diff options
Diffstat (limited to 'src/couch_replicator/src/couch_replicator.erl')
-rw-r--r-- | src/couch_replicator/src/couch_replicator.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/couch_replicator/src/couch_replicator.erl b/src/couch_replicator/src/couch_replicator.erl index 39141c301..1566ffd83 100644 --- a/src/couch_replicator/src/couch_replicator.erl +++ b/src/couch_replicator/src/couch_replicator.erl @@ -73,9 +73,10 @@ replicate(PostBody, Ctx) -> false -> check_authorization(RepId, UserCtx), {ok, Listener} = rep_result_listener(RepId), - Result = do_replication_loop(Rep), + {ok, {Result}} = do_replication_loop(Rep), couch_replicator_notifier:stop(Listener), - Result + {PublicRepId, _} = couch_replicator_ids:replication_id(Rep), % TODO: check with options + {ok, {[{<<"replication_id">>, ?l2b(PublicRepId)} | Result]}} end. |