From 0a8edb4c3245c4e746304b6f5c6617f4fb55dafe Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Fri, 13 Jun 2008 13:21:01 +0000 Subject: Fix for bug when reopening view indexes. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@667522 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_view.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/couchdb/couch_view.erl b/src/couchdb/couch_view.erl index ecb8e06b..a7dae8d4 100644 --- a/src/couchdb/couch_view.erl +++ b/src/couchdb/couch_view.erl @@ -481,7 +481,7 @@ init_group(Db, Fd, #group{def_lang=Lang,views=Views}=Group, {Seq, IdBtreeState, ViewStates} = _IndexHeaderData) -> {ok, IdBtree} = couch_btree:open(IdBtreeState, Fd), Views2 = lists:zipwith( - fun(BtreeState, #view{btree=BtreeState,reduce_funs=RedFuns}=View) -> + fun(BtreeState, #view{reduce_funs=RedFuns}=View) -> FunSrcs = [FunSrc || {_Name, FunSrc} <- RedFuns], ReduceFun = fun(reduce, KVs) -> -- cgit v1.2.3