Repository: couchdb-fabric Updated Branches: refs/heads/master 9f4c9994f -> 17af869aa
Fix match in fabric_doc_open_revs reply Message handler in fabric_doc_open_revs returns tagged with 'ok' list of the replies and not expected {ok, Reply} tuple. This makes reply to go through 'Else' clause and skip filter_reply function. Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/e8452fba Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/e8452fba Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/e8452fba Branch: refs/heads/master Commit: e8452fbafc4355cf55d017744a6c336a49848af7 Parents: 9f4c999 Author: Eric Avdey <e...@eiri.ca> Authored: Tue Jun 14 13:10:04 2016 -0300 Committer: Eric Avdey <e...@eiri.ca> Committed: Tue Jun 14 13:10:04 2016 -0300 ---------------------------------------------------------------------- src/fabric_doc_open_revs.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/e8452fba/src/fabric_doc_open_revs.erl ---------------------------------------------------------------------- diff --git a/src/fabric_doc_open_revs.erl b/src/fabric_doc_open_revs.erl index 9228991..663860a 100644 --- a/src/fabric_doc_open_revs.erl +++ b/src/fabric_doc_open_revs.erl @@ -46,8 +46,8 @@ go(DbName, Id, Revs, Options) -> }, RexiMon = fabric_util:create_monitors(Workers), try fabric_util:recv(Workers, #shard.ref, fun handle_message/3, State) of - {ok, {ok, Reply}} -> - {ok, filter_reply(Reply)}; + {ok, Replies} -> + {ok, filter_reply(Replies)}; {timeout, #state{workers=DefunctWorkers}} -> fabric_util:log_timeout(DefunctWorkers, "open_revs"), {error, timeout};