couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject ddoc-cache commit: updated refs/heads/windsor-merge to d9bc36f
Date Thu, 14 Aug 2014 17:48:05 GMT
Repository: couchdb-ddoc-cache
Updated Branches:
  refs/heads/windsor-merge 64bab9393 -> d9bc36ff4


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/windsor-merge
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