diff options
author | Nick Vatamaniuc <vatamane@apache.org> | 2020-10-06 17:48:07 -0400 |
---|---|---|
committer | Nick Vatamaniuc <vatamane@apache.org> | 2020-10-06 17:48:07 -0400 |
commit | 43da3ea94c55505b59fbc5447660a153e7d8994a (patch) | |
tree | 649a47e52375c478e456e2b028960550c3dc3461 | |
parent | 990a3bd7240971cc0274b26fa496b88fd6c66f44 (diff) | |
download | couchdb-43da3ea94c55505b59fbc5447660a153e7d8994a.tar.gz |
Properly initialize `user` in replication job's stateadd-user-to-active-tasks-for-replicator
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). |