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

kocolosk pushed a commit to branch finalize-reduce-optimization
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/finalize-reduce-optimization 
by this push:
     new 90f4a18  Hopefully the last fix
90f4a18 is described below

commit 90f4a18bbf666ba2d15fa6ce919c344f69728e90
Author: Adam Kocoloski <[email protected]>
AuthorDate: Wed Jun 6 22:17:12 2018 -0400

    Hopefully the last fix
---
 src/couch_mrview/src/couch_mrview.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch_mrview/src/couch_mrview.erl 
b/src/couch_mrview/src/couch_mrview.erl
index b29428e..82bbd79 100644
--- a/src/couch_mrview/src/couch_mrview.erl
+++ b/src/couch_mrview/src/couch_mrview.erl
@@ -583,7 +583,7 @@ map_fold(#doc{id = <<"_local/", _/binary>>} = Doc, _Offset, 
#mracc{} = Acc) ->
 red_fold(Db, {NthRed, _Lang, View}=RedView, Args, Callback, UAcc) ->
     Finalizer = case couch_util:get_value(finalizer, Args#mrargs.extra) of
         undefined ->
-            {_, FunSrc} = lists:nth(NthRed, RedView#mrview.reduce_funs),
+            {_, FunSrc} = lists:nth(NthRed, View#mrview.reduce_funs),
             FunSrc;
         CustomFun->
             CustomFun

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to