You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/02/03 13:59:55 UTC
[16/27] couchdb commit: updated refs/heads/1843-feature-bigcouch to
465d1ad
This ejson_body requirement is tedious and pervasive.
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/84e6e49a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/84e6e49a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/84e6e49a
Branch: refs/heads/1843-feature-bigcouch
Commit: 84e6e49a114696bc4a71d087882c36337358e36c
Parents: 758a9f5
Author: Robert Newson <rn...@apache.org>
Authored: Mon Dec 23 23:09:28 2013 +0000
Committer: Robert Newson <rn...@apache.org>
Committed: Mon Feb 3 12:54:10 2014 +0000
----------------------------------------------------------------------
src/ddoc_cache/src/ddoc_cache.erl | 2 +-
src/ddoc_cache/src/ddoc_cache_opener.erl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/84e6e49a/src/ddoc_cache/src/ddoc_cache.erl
----------------------------------------------------------------------
diff --git a/src/ddoc_cache/src/ddoc_cache.erl b/src/ddoc_cache/src/ddoc_cache.erl
index 685a368..e862667 100644
--- a/src/ddoc_cache/src/ddoc_cache.erl
+++ b/src/ddoc_cache/src/ddoc_cache.erl
@@ -78,4 +78,4 @@ recover({DbName, validation_funs}) ->
end, DDocs),
{ok, Funs};
recover({DbName, DDocId}) ->
- fabric:open_doc(DbName, DDocId, []).
+ fabric:open_doc(DbName, DDocId, [ejson_body]).
http://git-wip-us.apache.org/repos/asf/couchdb/blob/84e6e49a/src/ddoc_cache/src/ddoc_cache_opener.erl
----------------------------------------------------------------------
diff --git a/src/ddoc_cache/src/ddoc_cache_opener.erl b/src/ddoc_cache/src/ddoc_cache_opener.erl
index e7abc9d..68b9127 100644
--- a/src/ddoc_cache/src/ddoc_cache_opener.erl
+++ b/src/ddoc_cache/src/ddoc_cache_opener.erl
@@ -178,7 +178,7 @@ open_ddoc({DbName, validation_funs}=Key) ->
ok = ets_lru:insert(ddoc_cache_lru, {DbName, validation_funs}, Funs),
exit({open_ok, Key, {ok, Funs}});
open_ddoc({DbName, DDocId}=Key) ->
- try fabric:open_doc(DbName, DDocId, []) of
+ try fabric:open_doc(DbName, DDocId, [ejson_body]) of
{ok, Doc} ->
ok = ets_lru:insert(ddoc_cache_lru, {DbName, DDocId}, Doc),
exit({open_ok, Key, {ok, Doc}});