You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2020/10/06 22:44:19 UTC
[couchdb] branch main updated: Properly initialize `user` in
replication job's state
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/main by this push:
new e42d33f Properly initialize `user` in replication job's state
e42d33f is described below
commit e42d33fcc77a09e99d1bc70557810a8536a80027
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Tue Oct 6 17:48:07 2020 -0400
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.
---
src/couch_replicator/src/couch_replicator_job.erl | 6 ++++--
1 file 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 eaa661e..e13fb11 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).