You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/12/16 21:59:01 UTC

[1/2] fabric commit: updated refs/heads/master to 86995c5

Repository: couchdb-fabric
Updated Branches:
  refs/heads/master 9e87f8b3f -> 86995c5aa


Exit early when there is a quorum but list of docs is empty

There is no point to go through repair stage since this set of
conditions meens that the doc with given id doesn't exists.
Besides not going through repair process fixes the case when
we request open_revs=all for non existent document

COUCHDB-2517


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/4b6b2fe1
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/4b6b2fe1
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/4b6b2fe1

Branch: refs/heads/master
Commit: 4b6b2fe1a9a1d11832b9ca5af5432e8c8a8f467f
Parents: 9e87f8b
Author: ILYA Khlopotov <ii...@ca.ibm.com>
Authored: Mon Dec 8 07:52:12 2014 -0800
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Tue Dec 16 14:58:29 2014 -0600

----------------------------------------------------------------------
 src/fabric_doc_open_revs.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/4b6b2fe1/src/fabric_doc_open_revs.erl
----------------------------------------------------------------------
diff --git a/src/fabric_doc_open_revs.erl b/src/fabric_doc_open_revs.erl
index 4fc7cd5..0a30afc 100644
--- a/src/fabric_doc_open_revs.erl
+++ b/src/fabric_doc_open_revs.erl
@@ -131,6 +131,8 @@ skip(#state{revs=Revs} = State) ->
 
 maybe_reply(_, [], false, _, _) ->
     noreply;
+maybe_reply(_, [], true, _, _) ->
+    {reply, {ok, []}};
 maybe_reply(DbName, ReplyDict, Complete, RepairDocs, R) ->
     case Complete orelse lists:all(fun({_,{_, C}}) -> C >= R end, ReplyDict) of
     true ->


[2/2] fabric commit: updated refs/heads/master to 86995c5

Posted by da...@apache.org.
Merge branch '2517-open_revs=all-function_clause'

Fixes #7


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/86995c5a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/86995c5a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/86995c5a

Branch: refs/heads/master
Commit: 86995c5aa93b39ba05adf8f073ac9f5c37e29f2a
Parents: 9e87f8b 4b6b2fe
Author: Paul J. Davis <pa...@gmail.com>
Authored: Tue Dec 16 14:58:43 2014 -0600
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Tue Dec 16 14:58:43 2014 -0600

----------------------------------------------------------------------
 src/fabric_doc_open_revs.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------