You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2018/01/29 18:09:53 UTC
[couchdb] 01/06: ss - couch_db_updater hunk
This is an automated email from the ASF dual-hosted git repository.
davisp pushed a commit to branch COUCHDB-3287-pluggable-storage-engines-rebase
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 98c3cdc56015bcc210a7d4db74718f1d1669ba0e
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Mon Jan 29 12:08:04 2018 -0600
ss - couch_db_updater hunk
---
src/couch/src/couch_db_updater.erl | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/couch/src/couch_db_updater.erl b/src/couch/src/couch_db_updater.erl
index ca61e04..955900f 100644
--- a/src/couch/src/couch_db_updater.erl
+++ b/src/couch/src/couch_db_updater.erl
@@ -1476,6 +1476,15 @@ get_meta_body_size(Meta, Summary) ->
end.
+get_meta_body_size(Meta, Summary) ->
+ case lists:keyfind(ejson_size, 1, Meta) of
+ {ejson_size, ExternalSize} ->
+ ExternalSize;
+ false ->
+ ?term_size(couch_compress:decompress(Summary))
+ end.
+
+
default_security_object(<<"shards/", _/binary>>) ->
case config:get("couchdb", "default_security", "everyone") of
"admin_only" ->
--
To stop receiving notification emails like this one, please contact
davisp@apache.org.