You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by to...@apache.org on 2017/07/14 17:07:47 UTC

[couchdb] branch 3429-external-size-dbs updated: fix missing term_size

This is an automated email from the ASF dual-hosted git repository.

tonysun83 pushed a commit to branch 3429-external-size-dbs
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/3429-external-size-dbs by this push:
     new 2065100  fix missing term_size
2065100 is described below

commit 2065100bab696d8dc6086835d10023d11320221c
Author: Tony Sun <to...@cloudant.com>
AuthorDate: Fri Jul 14 10:13:08 2017 -0700

    fix missing term_size
---
 src/couch/src/couch_db_updater.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch/src/couch_db_updater.erl b/src/couch/src/couch_db_updater.erl
index 45468eb..277f2b5 100644
--- a/src/couch/src/couch_db_updater.erl
+++ b/src/couch/src/couch_db_updater.erl
@@ -1481,7 +1481,7 @@ get_meta_body_size(Meta, Summary) ->
         {ejson_size, ExternalSize} ->
             ExternalSize;
         false ->
-            couch_compress:decompress(Summary)
+            ?term_size(couch_compress:decompress(Summary))
     end.
 
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].