couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iil...@apache.org
Subject [1/2] fabric commit: updated refs/heads/master to c449ab2
Date Tue, 03 May 2016 15:30:05 GMT
Repository: couchdb-fabric
Updated Branches:
  refs/heads/master f0d6c03e4 -> c449ab224


Improve fabric:get_doc_count spec


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

Branch: refs/heads/master
Commit: 1dcc5b88a34f5ccf65c4dec97f0096808e3ae407
Parents: f0d6c03
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Tue May 3 06:57:49 2016 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Tue May 3 06:57:49 2016 -0700

----------------------------------------------------------------------
 src/fabric.erl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/1dcc5b88/src/fabric.erl
----------------------------------------------------------------------
diff --git a/src/fabric.erl b/src/fabric.erl
index 97f766b..e568179 100644
--- a/src/fabric.erl
+++ b/src/fabric.erl
@@ -84,7 +84,10 @@ get_db_info(DbName) ->
     fabric_db_info:go(dbname(DbName)).
 
 %% @doc the number of docs in a database
--spec get_doc_count(dbname()) -> {ok, non_neg_integer()}.
+-spec get_doc_count(dbname()) ->
+    {ok, non_neg_integer()} |
+    {error, atom()} |
+    {error, atom(), any()}.
 get_doc_count(DbName) ->
     fabric_db_doc_count:go(dbname(DbName)).
 


Mime
View raw message