davisp commented on a change in pull request #849: Fix external size bug when 
seq btree exists
URL: https://github.com/apache/couchdb/pull/849#discussion_r148115363
 
 

 ##########
 File path: src/couch_mrview/src/couch_mrview.erl
 ##########
 @@ -315,14 +315,16 @@ count_view_changes_since(Db, DDoc, VName, SinceSeq, 
Options) ->
                 _ -> View#mrview.seq_btree
             end,
             lists:foldl(fun(Opts, Acc0) ->
-                            {ok, N} = couch_btree:fold_reduce(
-                                    Btree, fun(_SeqStart, PartialReds, 0) ->
-                                        {ok, couch_btree:final_reduce(
-                                                    Btree, PartialReds)}
-                                    end,
-                                0, Opts),
-                            Acc0 + N
-                    end, 0, OptList);
+                case couch_btree:fold_reduce(Btree,
+                    fun(_SeqStart, PartialReds, 0) ->
 
 Review comment:
   Big narp on this formatting. Assign your anonymous function to a variable 
and pass that.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to