diff options
author | Nick Vatamaniuc <vatamane@apache.org> | 2020-09-30 18:10:10 -0400 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2020-09-30 18:40:21 -0400 |
commit | f143beb96546931314fe636cc485b1d4c84f0f4a (patch) | |
tree | a5efdc6936971dadd7afcb48905e898f8edc926e | |
parent | eaf13d35338fa4eecf660879c0b469c1db850a5b (diff) | |
download | couchdb-f143beb96546931314fe636cc485b1d4c84f0f4a.tar.gz |
Add node and pid to _scheduler/jobs output
This is mainly for compatibility with CouchDB 3.x
Ref: https://docs.couchdb.org/en/stable/api/server/common.html#scheduler-jobs
-rw-r--r-- | src/couch_replicator/src/couch_replicator.erl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/couch_replicator/src/couch_replicator.erl b/src/couch_replicator/src/couch_replicator.erl index 8ab36e587..a690d37c3 100644 --- a/src/couch_replicator/src/couch_replicator.erl +++ b/src/couch_replicator/src/couch_replicator.erl @@ -438,7 +438,9 @@ job_ejson(#{} = JobData) -> ?STATE := State, ?STATE_INFO := Info0, ?JOB_HISTORY := History, - ?REP_STATS := Stats + ?REP_STATS := Stats, + ?REP_NODE := Node, + ?REP_PID := Pid } = JobData, #{ @@ -470,7 +472,9 @@ job_ejson(#{} = JobData) -> <<"info">> => Info, <<"user">> => User, <<"history">> => History1, - <<"start_time">> => StartISO8601 + <<"start_time">> => StartISO8601, + <<"node">> => Node, + <<"pid">> => Pid }. |