davisp commented on a change in pull request #495: Couchdb 3288 mixed cluster 
upgrade
URL: https://github.com/apache/couchdb/pull/495#discussion_r114017199
 
 

 ##########
 File path: src/couch_mrview/src/couch_mrview_compactor.erl
 ##########
 @@ -53,8 +53,7 @@ compact(State) ->
         {ok, Fd} = couch_mrview_util:open_file(CompactFName),
         ESt = couch_mrview_util:reset_index(Db, Fd, State),
 
-        {ok, DbReduce} = couch_btree:full_reduce(Db#db.id_tree),
-        Count = element(1, DbReduce),
+        {ok, Count} = couch_db:get_doc_count(Db),
 
 Review comment:
   Ah. We'll want to patch couch_db and then couch_bt_engine for PSE for 3287
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to