summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@apache.org>2017-05-03 13:32:12 -0400
committerNick Vatamaniuc <vatamane@apache.org>2017-05-03 13:32:12 -0400
commitf9e2e5a4b8e986343695082a3ccc4a470446e2bb (patch)
tree41de89f6126e5701a0ec4088107fe5346f7b8c6e
parentecb67e300bf53b797034c555abe9adacab77ab0c (diff)
downloadcouchdb-f9e2e5a4b8e986343695082a3ccc4a470446e2bb.tar.gz
Fix `badarg` when querying replicator's _scheduler/docs endpoint
Jira: COUCHDB-3324
-rw-r--r--src/couch_replicator/src/couch_replicator.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couch_replicator/src/couch_replicator.erl b/src/couch_replicator/src/couch_replicator.erl
index 68de11449..c67b37d19 100644
--- a/src/couch_replicator/src/couch_replicator.erl
+++ b/src/couch_replicator/src/couch_replicator.erl
@@ -189,7 +189,7 @@ active_doc(DbName, DocId) ->
{ok, DocInfo} ->
{ok, DocInfo};
{error, not_found} ->
- active_doc_rpc(DbName, DocId, Nodes -- Owner)
+ active_doc_rpc(DbName, DocId, Nodes -- [Owner])
end
catch
% Might be a local database