This is an automated email from the ASF dual-hosted git repository. jiangphcn pushed a commit to branch COUCHDB-3326-clustered-purge-pr5-implementation in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/COUCHDB-3326-clustered-purge-pr5-implementation by this push: new 2132681 get_ddocs/1 returns unnecessary ok tag for cluster db 2132681 is described below commit 21326811fe800d7d5a7304f85cec500dc14d96f9 Author: jiangphcn <jian...@cn.ibm.com> AuthorDate: Tue Jun 19 14:49:07 2018 +0800 get_ddocs/1 returns unnecessary ok tag for cluster db COUCHDB-3326 --- src/couch/src/couch_db_engine.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/couch/src/couch_db_engine.erl b/src/couch/src/couch_db_engine.erl index 385156c..ea30dbc 100644 --- a/src/couch/src/couch_db_engine.erl +++ b/src/couch/src/couch_db_engine.erl @@ -1015,7 +1015,7 @@ get_ddocs(<<"shards/", _/binary>> = DbName) -> get_ddocs(DbName) -> couch_util:with_db(DbName, fun(Db) -> FoldFun = fun(FDI, Acc) -> - Doc = couch_db:open_doc_int(Db, FDI, []), + {ok, Doc} = couch_db:open_doc_int(Db, FDI, []), {ok, [Doc | Acc]} end, {ok, Docs} = couch_db:fold_design_docs(Db, FoldFun, [], []),