You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2008/06/13 15:21:01 UTC

svn commit: r667522 - /incubator/couchdb/trunk/src/couchdb/couch_view.erl

Author: damien
Date: Fri Jun 13 06:21:01 2008
New Revision: 667522

URL: http://svn.apache.org/viewvc?rev=667522&view=rev
Log:
Fix for bug when reopening view indexes.

Modified:
    incubator/couchdb/trunk/src/couchdb/couch_view.erl

Modified: incubator/couchdb/trunk/src/couchdb/couch_view.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/src/couchdb/couch_view.erl?rev=667522&r1=667521&r2=667522&view=diff
==============================================================================
--- incubator/couchdb/trunk/src/couchdb/couch_view.erl (original)
+++ incubator/couchdb/trunk/src/couchdb/couch_view.erl Fri Jun 13 06:21:01 2008
@@ -481,7 +481,7 @@
         {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) ->