couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From klaus_trai...@apache.org
Subject fabric commit: updated refs/heads/master to 9335f03
Date Wed, 19 Aug 2015 09:54:59 GMT
Repository: couchdb-fabric
Updated Branches:
  refs/heads/master 8539ca287 -> 9335f03e6


Fix type specs


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

Branch: refs/heads/master
Commit: 9335f03e6f3279a146917a75c2fb12303ebeb9b6
Parents: 8539ca2
Author: Klaus Trainer <klaus_trainer@posteo.de>
Authored: Wed Aug 19 11:52:46 2015 +0200
Committer: Klaus Trainer <klaus_trainer@posteo.de>
Committed: Wed Aug 19 11:52:46 2015 +0200

----------------------------------------------------------------------
 src/fabric.erl | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/9335f03e/src/fabric.erl
----------------------------------------------------------------------
diff --git a/src/fabric.erl b/src/fabric.erl
index fed8d11..07c4c9c 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -143,12 +143,18 @@ get_security(DbName, Options) ->
     try couch_db:get_security(Db) after catch couch_db:close(Db) end.
 
 %% @doc retrieve the security object for all shards of a database
--spec get_all_security(dbname()) -> json_obj() | no_return().
+-spec get_all_security(dbname()) ->
+    {ok, json_obj()} |
+    {error, no_majority | timeout} |
+    {error, atom(), any()}.
 get_all_security(DbName) ->
     get_all_security(DbName, []).
 
 %% @doc retrieve the security object for all shards of a database
--spec get_all_security(dbname(), [option()]) -> json_obj() | no_return().
+-spec get_all_security(dbname(), [option()]) ->
+    {ok, json_obj()} |
+    {error, no_majority | timeout} |
+    {error, atom(), any()}.
 get_all_security(DbName, Options) ->
     fabric_db_meta:get_all_security(dbname(DbName), opts(Options)).
 


Mime
View raw message