couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r657606 - /incubator/couchdb/trunk/src/couchdb/couch_view.erl
Date Sun, 18 May 2008 18:47:57 GMT
Author: damien
Date: Sun May 18 11:47:57 2008
New Revision: 657606

URL: http://svn.apache.org/viewvc?rev=657606&view=rev
Log:
Fix for pattern matching bug during reduce

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=657606&r1=657605&r2=657606&view=diff
==============================================================================
--- incubator/couchdb/trunk/src/couchdb/couch_view.erl (original)
+++ incubator/couchdb/trunk/src/couchdb/couch_view.erl Sun May 18 11:47:57 2008
@@ -116,7 +116,7 @@
             {ok, Reduced} = couch_query_servers:combine(Lang, [FunSrc], UserReds),
             {0, PreResultPadding ++ Reduced ++ PostResultPadding}
         end,
-    {0, [FinalReduction]} = couch_btree:final_reduce(ReduceFun, PartialReductions),
+    {_, [FinalReduction]} = couch_btree:final_reduce(ReduceFun, PartialReductions),
     {ok, FinalReduction}.
         
 get_key_pos(_Key, [], _N) ->



Mime
View raw message