summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Avdey <eiri@eiri.ca>2019-03-18 12:51:33 -0300
committerEric Avdey <eiri@eiri.ca>2019-03-27 09:36:55 -0300
commit56a9d1bfa335f95b4acbd55616e58c1a3abb68a4 (patch)
tree6bcd6416709d3a58ec054d35ec7b3094080c9d6c
parent9d7a56ea59a8d787249defc00666eb471395a7ad (diff)
downloadcouchdb-56a9d1bfa335f95b4acbd55616e58c1a3abb68a4.tar.gz
Use couch_ejson_size for calculation of doc's ejson size
-rw-r--r--src/couch/src/couch_db.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couch/src/couch_db.erl b/src/couch/src/couch_db.erl
index bdb9dfeca..a40f1131e 100644
--- a/src/couch/src/couch_db.erl
+++ b/src/couch/src/couch_db.erl
@@ -1359,7 +1359,7 @@ prepare_doc_summaries(Db, BucketList) ->
meta = [
{size_info, SizeInfo},
{atts_stream, AttsStream},
- {ejson_size, ?term_size(Body)}
+ {ejson_size, couch_ejson_size:encoded_size(Body)}
] ++ Doc0#doc.meta
},
couch_db_engine:serialize_doc(Db, Doc1)