Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Commit

Permalink
Revert "return empty ancestors list when necessary. this fixes functi…
Browse files Browse the repository at this point in the history
…on_clause in _revs_diff calls."

This reverts commit 111abfb.
  • Loading branch information
Robert Newson committed Jul 11, 2011
1 parent 111abfb commit 0f052e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fabric_doc_missing_revs.erl
Expand Up @@ -53,11 +53,11 @@ handle_message({ok, Results}, Worker, {WaitingCount, D0, Workers}) ->

force_reply(Id, {nil,Revs}, Acc) ->
% never heard about this ID, assume it's missing
[{Id, Revs, []} | Acc];
[{Id, Revs} | Acc];
force_reply(_, [], Acc) ->
Acc;
force_reply(Id, Revs, Acc) ->
[{Id, Revs, []} | Acc].
[{Id, Revs} | Acc].

maybe_reply(_, _, continue) ->
continue;
Expand All @@ -66,7 +66,7 @@ maybe_reply(_, {nil, _}, _) ->
maybe_reply(_, [], {stop, Acc}) ->
{stop, Acc};
maybe_reply(Id, Revs, {stop, Acc}) ->
{stop, [{Id, Revs, []} | Acc]}.
{stop, [{Id, Revs} | Acc]}.

group_idrevs_by_shard(DbName, IdsRevs) ->
dict:to_list(lists:foldl(fun({Id, Revs}, D0) ->
Expand Down

0 comments on commit 0f052e9

Please sign in to comment.