diff options
author | Nick Vatamaniuc <vatamane@apache.org> | 2020-10-06 17:48:07 -0400 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2020-10-06 18:44:06 -0400 |
commit | e42d33fcc77a09e99d1bc70557810a8536a80027 (patch) | |
tree | 649a47e52375c478e456e2b028960550c3dc3461 | |
parent | 990a3bd7240971cc0274b26fa496b88fd6c66f44 (diff) | |
download | couchdb-e42d33fcc77a09e99d1bc70557810a8536a80027.tar.gz |
Properly initialize `user` in replication job's state
This value is emitted in _active_tasks and was previously emitting `null`
values from the state record's defaults.
-rw-r--r-- | src/couch_replicator/src/couch_replicator_job.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/couch_replicator/src/couch_replicator_job.erl b/src/couch_replicator/src/couch_replicator_job.erl index eaa661e77..e13fb1120 100644 --- a/src/couch_replicator/src/couch_replicator_job.erl +++ b/src/couch_replicator/src/couch_replicator_job.erl @@ -947,7 +947,8 @@ init_state(#{} = Job, #{} = JobData) -> ?SOURCE := Src0, ?TARGET := Tgt, ?START_TIME := StartTime, - ?OPTIONS := Options0 + ?OPTIONS := Options0, + ?REP_USER := User } = Rep, % Optimize replication parameters if last time the jobs crashed because it @@ -1013,7 +1014,8 @@ init_state(#{} = Job, #{} = JobData) -> stats_timer = nil, doc_id = DocId, db_name = DbName, - db_uuid = DbUUID + db_uuid = DbUUID, + user = User }, start_checkpoint_timer(State). |