couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [09/10] ddoc-cache commit: updated refs/heads/master to 4ffc6b0
Date Thu, 28 Aug 2014 12:17:51 GMT
Load design docs with an ejson body


Project: http://git-wip-us.apache.org/repos/asf/couchdb-ddoc-cache/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-ddoc-cache/commit/d9bc36ff
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-ddoc-cache/tree/d9bc36ff
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-ddoc-cache/diff/d9bc36ff

Branch: refs/heads/master
Commit: d9bc36ff4c32711ab128e3b6491ade0ae8ed415d
Parents: 64bab93
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Thu Aug 14 12:47:51 2014 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Thu Aug 14 12:47:51 2014 -0500

----------------------------------------------------------------------
 src/ddoc_cache_opener.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-ddoc-cache/blob/d9bc36ff/src/ddoc_cache_opener.erl
----------------------------------------------------------------------
diff --git a/src/ddoc_cache_opener.erl b/src/ddoc_cache_opener.erl
index 168b455..1ef3ec8 100644
--- a/src/ddoc_cache_opener.erl
+++ b/src/ddoc_cache_opener.erl
@@ -117,10 +117,10 @@ match_newest(Key) ->
     end.
 
 recover_doc(DbName, DDocId) ->
-    fabric:open_doc(DbName, DDocId, []).
+    fabric:open_doc(DbName, DDocId, [ejson_body]).
 
 recover_doc(DbName, DDocId, Rev) ->
-    {ok, [Resp]} = fabric:open_revs(DbName, DDocId, [Rev], []),
+    {ok, [Resp]} = fabric:open_revs(DbName, DDocId, [Rev], [ejson_body]),
     Resp.
 
 recover_validation_funs(DbName) ->


Mime
View raw message