diff options
author | Damien F. Katz <damien@apache.org> | 2008-05-18 18:47:57 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2008-05-18 18:47:57 +0000 |
commit | 4e47fa72aedc6533bd669599e325c911b2c8c68e (patch) | |
tree | 82a84f1cdc38ac49e6c1751bdb8316a86840a39a /src | |
parent | a1c8802b4701ba05b41329892dcf742679eedc7d (diff) |
Fix for pattern matching bug during reduce
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@657606 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_view.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_view.erl b/src/couchdb/couch_view.erl index cf03cccb..5a1ff2e4 100644 --- a/src/couchdb/couch_view.erl +++ b/src/couchdb/couch_view.erl @@ -116,7 +116,7 @@ reduce({reduce, NthRed, Lang, #view{btree=Bt, reduce_funs=RedFuns}}, Key1, Key2) {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) -> |