You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2012/01/28 15:47:27 UTC

git commit: Don't include rev tree in credentials

Updated Branches:
  refs/heads/master 127cbe36c -> bb3862ee7


Don't include rev tree in credentials

couch_query_servers:json_doc/1 adds the full revision
tree to the resulting EJSON object. This is not necessary
at all.
Detail noticed thanks to COUCHDB-1390.


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

Branch: refs/heads/master
Commit: bb3862ee7b3aae1b7223a327fe2b9d68b543e67c
Parents: 127cbe3
Author: Filipe David Borba Manana <fd...@apache.org>
Authored: Thu Jan 26 16:14:02 2012 +0000
Committer: Filipe David Borba Manana <fd...@apache.org>
Committed: Sat Jan 28 14:46:46 2012 +0000

----------------------------------------------------------------------
 src/couchdb/couch_auth_cache.erl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/bb3862ee/src/couchdb/couch_auth_cache.erl
----------------------------------------------------------------------
diff --git a/src/couchdb/couch_auth_cache.erl b/src/couchdb/couch_auth_cache.erl
index 94adac8..ff66dfb 100644
--- a/src/couchdb/couch_auth_cache.erl
+++ b/src/couchdb/couch_auth_cache.erl
@@ -293,7 +293,7 @@ refresh_entry(Db, #doc_info{high_seq = DocSeq} = DocInfo) ->
 user_creds(#doc{deleted = true}) ->
     nil;
 user_creds(#doc{} = Doc) ->
-    {Creds} = couch_query_servers:json_doc(Doc),
+    {Creds} = couch_doc:to_json_obj(Doc, []),
     Creds.
 
 
@@ -360,7 +360,7 @@ get_user_props_from_db(UserName) ->
             DocId = <<"org.couchdb.user:", UserName/binary>>,
             try
                 {ok, Doc} = couch_db:open_doc(Db, DocId, [conflicts]),
-                {DocProps} = couch_query_servers:json_doc(Doc),
+                {DocProps} = couch_doc:to_json_obj(Doc, []),
                 DocProps
             catch
             _:_Error ->